Commit eb6555c8 authored by Thomas Gleixner's avatar Thomas Gleixner

x86/entry/64: Move do_softirq_own_stack() to C

The first step to get rid of the ENTER/LEAVE_IRQ_STACK ASM macro maze.  Use
the new C code helpers to move do_softirq_own_stack() out of ASM code.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Acked-by: default avatarAndy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/20200521202117.870911120@linutronix.de
parent 931b9414
...@@ -1145,19 +1145,6 @@ SYM_FUNC_START(asm_call_on_stack) ...@@ -1145,19 +1145,6 @@ SYM_FUNC_START(asm_call_on_stack)
ret ret
SYM_FUNC_END(asm_call_on_stack) SYM_FUNC_END(asm_call_on_stack)
/* Call softirq on interrupt stack. Interrupts are off. */
.pushsection .text, "ax"
SYM_FUNC_START(do_softirq_own_stack)
pushq %rbp
mov %rsp, %rbp
ENTER_IRQ_STACK regs=0 old_rsp=%r11
call __do_softirq
LEAVE_IRQ_STACK regs=0
leaveq
ret
SYM_FUNC_END(do_softirq_own_stack)
.popsection
#ifdef CONFIG_XEN_PV #ifdef CONFIG_XEN_PV
/* /*
* A note on the "critical region" in our callback handler. * A note on the "critical region" in our callback handler.
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/sched/task_stack.h> #include <linux/sched/task_stack.h>
#include <asm/cpu_entry_area.h> #include <asm/cpu_entry_area.h>
#include <asm/irq_stack.h>
#include <asm/io_apic.h> #include <asm/io_apic.h>
#include <asm/apic.h> #include <asm/apic.h>
...@@ -70,3 +71,8 @@ int irq_init_percpu_irqstack(unsigned int cpu) ...@@ -70,3 +71,8 @@ int irq_init_percpu_irqstack(unsigned int cpu)
return 0; return 0;
return map_irq_stack(cpu); return map_irq_stack(cpu);
} }
void do_softirq_own_stack(void)
{
run_on_irqstack_cond(__do_softirq, NULL, NULL);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment