optimization for sys_semtimedop() (was: Opening Day for OpenSolaris)
A message that is not in the archive (sent off-list or not yet received): [email protected]
IANAL, but if this is from 'OpenSolaris sources' then surely it would be incompatible with the GPL?
Robert Gadsdon.
Quoted 11 lines · Manfred Spraul
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.
Signature · 1 line
Manfred