]> git.hungrycats.org Git - linux/commit
[SPARC32]: Use correct atomic initializer for semaphore counters
authorKeith M. Wesolowski <wesolows@foobazco.org>
Thu, 25 Mar 2004 00:11:23 +0000 (16:11 -0800)
committerKeith M. Wesolowski <wesolows@foobazco.org>
Thu, 25 Mar 2004 00:11:23 +0000 (16:11 -0800)
commit38d5a6c4208f718de2ef3e2fed6f921256b4e91f
tree52f1a58efbe5ea1eac401a164c32d2ef30f482e8
parentcd4aa976b421ec6e581c164004d6bf99b5152746
[SPARC32]: Use correct atomic initializer for semaphore counters

Semaphores use 24-bit atomics, not 32.  Using the wrong initializer
causes immediate deadlock under SMP, and incorrect results under UP.
include/asm-sparc/semaphore.h