xen/x86: set VIRQ_TIMER priority to maximum
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 23 Sep 2013 11:52:21 +0000 (12:52 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 6 Jan 2014 15:07:55 +0000 (10:07 -0500)
Commit bee980d9e (xen/events: Handle VIRQ_TIMER before any other hardirq
in event loop) effectively made the VIRQ_TIMER the highest priority event
when using the 2-level ABI.

Set the VIRQ_TIMER priority to the highest so this behaviour is retained
when using the FIFO-based ABI.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/xen/time.c

index 12a1ca707b94258466122b5f2d793726f8185d54..7b78f88c1707b994b34f20408bc1b6046447eb22 100644 (file)
@@ -446,6 +446,7 @@ void xen_setup_timer(int cpu)
                                      IRQF_PERCPU|IRQF_NOBALANCING|IRQF_TIMER|
                                      IRQF_FORCE_RESUME,
                                      name, NULL);
+       (void)xen_set_irq_priority(irq, XEN_IRQ_PRIORITY_MAX);
 
        memcpy(evt, xen_clockevent, sizeof(*evt));