genirq: Provide irq_enter/exit_rcu()

irq_enter()/exit() currently include RCU handling. To properly separate the RCU
handling code, provide variants which contain only the non-RCU related
functionality.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/20200521202117.567023613@linutronix.de
This commit is contained in:
Thomas Gleixner
2020-05-21 22:05:21 +02:00
parent 9ee01e0f69
commit 8a6bc4787f
2 changed files with 38 additions and 10 deletions

View File

@@ -40,7 +40,11 @@ static __always_inline void rcu_irq_enter_check_tick(void)
/*
* Enter irq context (on NO_HZ, update jiffies):
*/
extern void irq_enter(void);
void irq_enter(void);
/*
* Like irq_enter(), but RCU is already watching.
*/
void irq_enter_rcu(void);
/*
* Exit irq context without processing softirqs:
@@ -55,7 +59,12 @@ extern void irq_enter(void);
/*
* Exit irq context and process softirqs if needed:
*/
extern void irq_exit(void);
void irq_exit(void);
/*
* Like irq_exit(), but return with RCU watching.
*/
void irq_exit_rcu(void);
#ifndef arch_nmi_enter
#define arch_nmi_enter() do { } while (0)