summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/spinlock.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-05-12 10:13:41 +0200
committerLinus Walleij <linus.walleij@linaro.org>2015-05-12 10:13:41 +0200
commit8becdc18c3e1f855cae5af266f6a1f5ce5af24fb (patch)
treec42e2d4274b1aa17a7822385535ac8524e4a6822 /arch/x86/include/asm/spinlock.h
parentgpio: xilinx: Fix kernel-doc warnings (diff)
parentLinux 4.1-rc3 (diff)
downloadlinux-8becdc18c3e1f855cae5af266f6a1f5ce5af24fb.tar.xz
linux-8becdc18c3e1f855cae5af266f6a1f5ce5af24fb.zip
Merge tag 'v4.1-rc3' into devel
Linux 4.1-rc3
Diffstat (limited to 'arch/x86/include/asm/spinlock.h')
-rw-r--r--arch/x86/include/asm/spinlock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/spinlock.h b/arch/x86/include/asm/spinlock.h
index cf87de3fc390..64b611782ef0 100644
--- a/arch/x86/include/asm/spinlock.h
+++ b/arch/x86/include/asm/spinlock.h
@@ -169,7 +169,7 @@ static inline int arch_spin_is_contended(arch_spinlock_t *lock)
struct __raw_tickets tmp = READ_ONCE(lock->tickets);
tmp.head &= ~TICKET_SLOWPATH_FLAG;
- return (tmp.tail - tmp.head) > TICKET_LOCK_INC;
+ return (__ticket_t)(tmp.tail - tmp.head) > TICKET_LOCK_INC;
}
#define arch_spin_is_contended arch_spin_is_contended