Re: [PATCH] optimization for sys_semtimedop() (was: Opening Day forOpenSolaris)

From: Robert Gadsdon
Date: Tue Jun 14 2005 - 18:09:15 EST


IANAL, but if this is from 'OpenSolaris sources' then surely it would be incompatible with the GPL?

Robert Gadsdon.

Manfred Spraul wrote:
Hi,

semtimedop() performs a semaphore operation and if the operation cannot be performed immediately, then the function blocks until the timeout expires.
The current Linux implementation loads the timeout immediately, even if the operation doesn't block.
As explained in the OpenSolaris sources, this is not needed. The attached patch changes the Linux code.

The patch is trivial, but not tested. It shrinks the .text size by 32 bytes on x86.

--
Manfred

-
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/