diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-21 16:34:14 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-07-21 16:56:45 -0400 |
commit | c7f86f08e17883cbbbfbeffca9dae499750b59cb (patch) | |
tree | c24cf9ed6125ceeb9f900ed054be60c04daf427c /include/linux/interrupt.h | |
parent | aea1f7964ae6cba5eb419a958956deb9016b3341 (diff) |
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: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r-- | include/linux/interrupt.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 2721f07e9354..a8d8adbf8900 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -175,7 +175,7 @@ extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id); | |||
175 | #ifdef CONFIG_LOCKDEP | 175 | #ifdef CONFIG_LOCKDEP |
176 | # define local_irq_enable_in_hardirq() do { } while (0) | 176 | # define local_irq_enable_in_hardirq() do { } while (0) |
177 | #else | 177 | #else |
178 | # define local_irq_enable_in_hardirq() local_irq_enable() | 178 | # define local_irq_enable_in_hardirq() local_irq_enable_nort() |
179 | #endif | 179 | #endif |
180 | 180 | ||
181 | extern void disable_irq_nosync(unsigned int irq); | 181 | extern void disable_irq_nosync(unsigned int irq); |
@@ -588,4 +588,19 @@ extern int arch_probe_nr_irqs(void); | |||
588 | extern int arch_early_irq_init(void); | 588 | extern int arch_early_irq_init(void); |
589 | extern int arch_init_chip_data(struct irq_desc *desc, int node); | 589 | extern int arch_init_chip_data(struct irq_desc *desc, int node); |
590 | 590 | ||
591 | /* | ||
592 | * local_irq* variants depending on RT/!RT | ||
593 | */ | ||
594 | #ifdef CONFIG_PREEMPT_RT | ||
595 | # define local_irq_disable_nort() do { } while (0) | ||
596 | # define local_irq_enable_nort() do { } while (0) | ||
597 | # define local_irq_save_nort(flags) do { local_save_flags(flags); } while (0) | ||
598 | # define local_irq_restore_nort(flags) do { (void)(flags); } while (0) | ||
599 | #else | ||
600 | # define local_irq_disable_nort() local_irq_disable() | ||
601 | # define local_irq_enable_nort() local_irq_enable() | ||
602 | # define local_irq_save_nort(flags) local_irq_save(flags) | ||
603 | # define local_irq_restore_nort(flags) local_irq_restore(flags) | ||
604 | #endif | ||
605 | |||
591 | #endif | 606 | #endif |