]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e32e827377572f7861f9a24580ddfc74b10dbc7
tree6f3506469c33869126df962b743c2899efe1ec00
parent5e7886f9e46bb128fc7168baa615cdfb6c79574e
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