x86: fix spin_is_contended()
authorJan Beulich <jbeulich@novell.com>
Mon, 4 Aug 2008 13:38:54 +0000 (14:38 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 Aug 2008 14:26:51 +0000 (16:26 +0200)
commit7bc069c6bc4ede519a7116be1b9e149a1dbf787a
tree6f3506469c33869126df962b743c2899efe1ec00
parent8bb851900f5d0a79d3fddac808cc670d9894ef67
x86: fix spin_is_contended()

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>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/spinlock.h