Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb91f8f4 authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk
Browse files

xen/spinlock: Fix check from greater than to be also be greater or equal to.



During review of git commit cb9c6f15
("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: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent d5b17dbf
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -364,7 +364,7 @@ void __cpuinit xen_init_lock_cpu(int cpu)
	int irq;
	int irq;
	const char *name;
	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));
	     cpu, per_cpu(lock_kicker_irq, cpu));


	/*
	/*