lkml.org 
[lkml]   [2020]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch V5 20/38] x86/irq/64: Provide handle_irq()
To consolidate the interrupt entry/exit code vs. the other exceptions
provide handle_irq() (similar to 32bit) to move the interrupt stack
switching to C code. That allows to consolidate the entry exit handling by
reusing the idtentry machinery both in ASM and C.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
V5: Use the reworked ASM switcheroo
---
arch/x86/kernel/irq_64.c | 8 ++++++++
1 file changed, 8 insertions(+)

--- a/arch/x86/kernel/irq_64.c
+++ b/arch/x86/kernel/irq_64.c
@@ -79,3 +79,11 @@ void do_softirq_own_stack(void)
else
run_on_irqstack(__do_softirq, NULL);
}
+
+void handle_irq(struct irq_desc *desc, struct pt_regs *regs)
+{
+ if (!irq_needs_irq_stack(regs))
+ generic_handle_irq_desc(desc);
+ else
+ run_on_irqstack(desc->handle_irq, desc);
+}
\
 
 \ /
  Last update: 2020-05-13 00:24    [W:0.459 / U:0.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site