mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
Semaphores are no longer performance-critical, so a generic C implementation is better for maintainability, debuggability and extensibility. Thanks to Peter Zijlstra for fixing the lockdep warning. Thanks to Harvey Harrison for pointing out that the unlikely() was unnecessary. Signed-off-by: Matthew Wilcox <[email protected]> Acked-by: Ingo Molnar <[email protected]>
2 lines
29 B
C
2 lines
29 B
C
#include <linux/semaphore.h>
|