Commit c7f86f08 authored by Thomas Gleixner's avatar Thomas Gleixner

rt: local_irq_* variants depending on RT/!RT

Add local_irq_*_(no)rt variant which are mainly used to break
interrupt disabled sections on PREEMPT_RT.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent aea1f796
...@@ -175,7 +175,7 @@ extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id); ...@@ -175,7 +175,7 @@ extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id);
#ifdef CONFIG_LOCKDEP #ifdef CONFIG_LOCKDEP
# define local_irq_enable_in_hardirq() do { } while (0) # define local_irq_enable_in_hardirq() do { } while (0)
#else #else
# define local_irq_enable_in_hardirq() local_irq_enable() # define local_irq_enable_in_hardirq() local_irq_enable_nort()
#endif #endif
extern void disable_irq_nosync(unsigned int irq); extern void disable_irq_nosync(unsigned int irq);
...@@ -588,4 +588,19 @@ extern int arch_probe_nr_irqs(void); ...@@ -588,4 +588,19 @@ extern int arch_probe_nr_irqs(void);
extern int arch_early_irq_init(void); extern int arch_early_irq_init(void);
extern int arch_init_chip_data(struct irq_desc *desc, int node); extern int arch_init_chip_data(struct irq_desc *desc, int node);
/*
* local_irq* variants depending on RT/!RT
*/
#ifdef CONFIG_PREEMPT_RT
# define local_irq_disable_nort() do { } while (0)
# define local_irq_enable_nort() do { } while (0)
# define local_irq_save_nort(flags) do { local_save_flags(flags); } while (0)
# define local_irq_restore_nort(flags) do { (void)(flags); } while (0)
#else
# define local_irq_disable_nort() local_irq_disable()
# define local_irq_enable_nort() local_irq_enable()
# define local_irq_save_nort(flags) local_irq_save(flags)
# define local_irq_restore_nort(flags) local_irq_restore(flags)
#endif
#endif #endif
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