mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 17:25:38 +00:00
28b8235238
Move them to one place so the static call conversion gets simpler. No functional change. [ dhansen: merge against recent x86/apic changes ] Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Michael Kelley <mikelley@microsoft.com> Tested-by: Sohil Mehta <sohil.mehta@intel.com> Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
35 lines
698 B
C
35 lines
698 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* x86 specific code for irq_work
|
|
*
|
|
* Copyright (C) 2010 Red Hat, Inc., Peter Zijlstra
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/irq_work.h>
|
|
#include <linux/hardirq.h>
|
|
#include <asm/apic.h>
|
|
#include <asm/idtentry.h>
|
|
#include <asm/trace/irq_vectors.h>
|
|
#include <linux/interrupt.h>
|
|
|
|
#ifdef CONFIG_X86_LOCAL_APIC
|
|
DEFINE_IDTENTRY_SYSVEC(sysvec_irq_work)
|
|
{
|
|
apic_eoi();
|
|
trace_irq_work_entry(IRQ_WORK_VECTOR);
|
|
inc_irq_stat(apic_irq_work_irqs);
|
|
irq_work_run();
|
|
trace_irq_work_exit(IRQ_WORK_VECTOR);
|
|
}
|
|
|
|
void arch_irq_work_raise(void)
|
|
{
|
|
if (!arch_irq_work_has_interrupt())
|
|
return;
|
|
|
|
__apic_send_IPI_self(IRQ_WORK_VECTOR);
|
|
apic_wait_icr_idle();
|
|
}
|
|
#endif
|