summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-05-06 08:33:15 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-05-08 08:38:09 -0400
commitcb91f8f44caf346654fe9b17b2b359b95f98c049 (patch)
treef9b97d89bd5525d26162ddbbf47ae783e0e049f1 /arch/x86
parentd5b17dbff83d63fb6bf35daec21c8ebfb8d695b5 (diff)
downloadlinux-cb91f8f44caf346654fe9b17b2b359b95f98c049.tar.gz
linux-cb91f8f44caf346654fe9b17b2b359b95f98c049.tar.bz2
linux-cb91f8f44caf346654fe9b17b2b359b95f98c049.zip
xen/spinlock: Fix check from greater than to be also be greater or equal to.
During review of git commit cb9c6f15f318aa3aeb62fe525aa5c6dcf6eee159 ("xen/spinlock: Check against default value of -1 for IRQ line.") Stefano pointed out a bug in the patch. Unfortunatly due to vacation timing the fix was not applied and this patch fixes it up. Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/xen/spinlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/spinlock.c b/arch/x86/xen/spinlock.c
index 8b54603ce816..3002ec1bb71a 100644
--- a/arch/x86/xen/spinlock.c
+++ b/arch/x86/xen/spinlock.c
@@ -364,7 +364,7 @@ void __cpuinit xen_init_lock_cpu(int cpu)
int irq;
const char *name;
- WARN(per_cpu(lock_kicker_irq, cpu) > 0, "spinlock on CPU%d exists on IRQ%d!\n",
+ WARN(per_cpu(lock_kicker_irq, cpu) >= 0, "spinlock on CPU%d exists on IRQ%d!\n",
cpu, per_cpu(lock_kicker_irq, cpu));
/*