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>
11 #include <asm/trace/irq_vectors.h>
13 static inline void irq_work_entering_irq(void)
19 static inline void __smp_irq_work_interrupt(void)
21 inc_irq_stat(apic_irq_work_irqs
);
25 __visible
void smp_irq_work_interrupt(struct pt_regs
*regs
)
27 irq_work_entering_irq();
28 __smp_irq_work_interrupt();
32 __visible
void smp_trace_irq_work_interrupt(struct pt_regs
*regs
)
34 irq_work_entering_irq();
35 trace_irq_work_entry(IRQ_WORK_VECTOR
);
36 __smp_irq_work_interrupt();
37 trace_irq_work_exit(IRQ_WORK_VECTOR
);
41 void arch_irq_work_raise(void)
43 #ifdef CONFIG_X86_LOCAL_APIC
47 apic
->send_IPI_self(IRQ_WORK_VECTOR
);