mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
720909a7ab
Convert various system vectors to IDTENTRY_SYSVEC: - Implement the C entry point with DEFINE_IDTENTRY_SYSVEC - Emit the ASM stub with DECLARE_IDTENTRY_SYSVEC - Remove the ASM idtentries in 64-bit - Remove the BUILD_INTERRUPT entries in 32-bit - Remove the old prototypes No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Andy Lutomirski <luto@kernel.org> Link: https://lore.kernel.org/r/20200521202119.464812973@linutronix.de
35 lines
701 B
C
35 lines
701 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)
|
|
{
|
|
ack_APIC_irq();
|
|
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
|