Skip to contentSkip to conversation

switch atomic_t to long

PROPOSAL Ivan Kokshaysky 2 participants 2 messages Feb 29, 2004 – Mar 3, 2004 7 messages not in the archive Generic include/asm header files

lore
Share & tools
lore
#5 lore raw
In reply to a message not in the archive
Quoted 4 lines · Paul Mackerras

Note that you don't need both "count" and "waking" to do semaphores efficiently on architectures with load-locked/store-conditional; just a "count" is sufficient. Look at the ppc implementation (or the ppc64 or sparc64 implementations, which follow it).

Indeed...
Thanks for pointing that out.

Ivan.