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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux