summaryrefslogtreecommitdiff
path: root/include/asm-frv/semaphore.h
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2008-03-14 14:35:22 -0400
committerMatthew Wilcox <willy@linux.intel.com>2008-03-14 14:45:21 -0400
commitb1619dbd79aa25354f9049979029ce172792f0f0 (patch)
treee3c1831de6b9f9d600a875a006c7d39d6a9dc9be /include/asm-frv/semaphore.h
parent3195e6378704aea0ce5a467e0d4fdf4bfe61fe64 (diff)
Simplify semaphore implementation
By removing the negative values of 'count' and relying on the wait_list to indicate whether we have any waiters, we can simplify the implementation by removing the protection against an unlikely race condition. Thanks to David Howells for his suggestions. Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Diffstat (limited to 'include/asm-frv/semaphore.h')
0 files changed, 0 insertions, 0 deletions