Re: select() for delay.

From: Arnd Bergmann
Date: Sun Oct 30 2005 - 14:08:33 EST


On Maandag 24 Oktober 2005 12:55, madhu.subbaiah@xxxxxxxxx wrote:

> This is regarding select() system call.
>
> Linux select() man page mentions " Some code calls select with all
> three sets empty, n zero, and a non-null timeout as a fairly portable
> way to sleep with subsecond precision".

When you make a change to a system call, you should always check
if the change makes sense for the 32 bit emulation path as well.

In this case, you should definitely do the same thing to both
sys_select and compat_sys_select if this is found worthwhile.

> This patch improves the sys_select() execution when used for delay.

Please describe what aspect of the syscall is improved. Is this only
speeding up the execution for the delay case while slowing down
the normal case, or do the actual semantics improve?

Arnd <><
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/