]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/xen/events.c
rtc/m41t80: use rtc_valid_tm() to check returned tm
[karo-tx-linux.git] / drivers / xen / events.c
index b5a254e9aebe093e2492582328dfbcba7cf6ac88..72f91bff29c7d836d86844c224225e1353c76648 100644 (file)
@@ -550,6 +550,7 @@ int bind_ipi_to_irqhandler(enum ipi_vector ipi,
        if (irq < 0)
                return irq;
 
+       irqflags |= IRQF_NO_SUSPEND;
        retval = request_irq(irq, handler, irqflags, devname, dev_id);
        if (retval != 0) {
                unbind_from_irq(irq);
@@ -973,6 +974,7 @@ int xen_set_callback_via(uint64_t via)
 }
 EXPORT_SYMBOL_GPL(xen_set_callback_via);
 
+#ifdef CONFIG_XEN_PVHVM
 /* Vector callbacks are better than PCI interrupts to receive event
  * channel notifications because we can receive vector callbacks on any
  * vcpu and we don't need PCI support or APIC interactions. */
@@ -996,6 +998,9 @@ void xen_callback_vector(void)
                        alloc_intr_gate(XEN_HVM_EVTCHN_CALLBACK, xen_hvm_callback_vector);
        }
 }
+#else
+void xen_callback_vector(void) {}
+#endif
 
 void __init xen_init_IRQ(void)
 {