]> 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:15:47 +0000 (11:15 -0700)
commit139d09bb6ec8af8de216b0e8b04304d3f5f396bf
tree2cdd53a201effb5e6f20337d4f7ece7fb3a939ce
parent8351091278bee4ee706b1c08c54193914acc7d31
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