From: Andrew Morton Signed-off-by: Andrew Morton --- include/asm-x86_64/spinlock.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN include/asm-x86_64/spinlock.h~x86_64-mm-spin-irqs-enabled-fix include/asm-x86_64/spinlock.h --- a/include/asm-x86_64/spinlock.h~x86_64-mm-spin-irqs-enabled-fix +++ a/include/asm-x86_64/spinlock.h @@ -51,7 +51,7 @@ static inline void __raw_spin_lock_flags { asm volatile( "\n1:\t" - LOCK_PREFIX "; decb %0\n\t" + LOCK_PREFIX "; decl %0\n\t" "js 2f\n\t" LOCK_SECTION_START("") "2:\t" @@ -60,7 +60,7 @@ static inline void __raw_spin_lock_flags "sti\n\t" "3:\t" "rep;nop\n\t" - "cmpb $0, %0\n\t" + "cmpl $0, %0\n\t" "jle 3b\n\t" "cli\n\t" "jmp 1b\n" _