]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: fix spin_is_contended()
authorJan Beulich <jbeulich@novell.com>
Sun, 17 Aug 2008 00:25:05 +0000 (00:25 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Aug 2008 18:05:13 +0000 (11:05 -0700)
commita6582aa43703213e727161911938db89c511aa57
tree201463d797ba6c1193178186acee9caaaa07de9f
parentf04a00a3d88449b4a189fd39943d2b8b5aa19bdd
x86: fix spin_is_contended()

commit 7bc069c6bc4ede519a7116be1b9e149a1dbf787a upstream

The masked difference is what needs to be compared against 1, rather
than the difference of masked values (which can be negative).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/asm-x86/spinlock.h