2 * x86 specific code for irq_work
4 * Copyright (C) 2010 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com>
7 #include <linux/kernel.h>
8 #include <linux/irq_work.h>
9 #include <linux/hardirq.h>
12 static inline void irq_work_entering_irq(void)
18 static inline void __smp_irq_work_interrupt(void)
20 inc_irq_stat(apic_irq_work_irqs);
24 void smp_irq_work_interrupt(struct pt_regs *regs)
26 irq_work_entering_irq();
27 __smp_irq_work_interrupt();
31 void arch_irq_work_raise(void)
33 #ifdef CONFIG_X86_LOCAL_APIC
37 apic->send_IPI_self(IRQ_WORK_VECTOR);