Skip to contentSkip to conversation

lockdep: Delete local_irq_enable_in_hardirq()

PATCH Applied Thomas Gleixner 2 participants 2 messages May 9, 2022 – May 11, 2022

lore
Share & tools
lore
#0 lore raw

No more users and there is no desire to grow new ones.

---
 include/linux/interrupt.h |   18 ------------------
 1 file changed, 18 deletions(-)
include/linux/interrupt.h +0 -18
@@ -222,24 +222,6 @@ devm_request_any_context_irq(struct devi
 
 extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id);
 
-/*
- * On lockdep we dont want to enable hardirqs in hardirq
- * context. Use local_irq_enable_in_hardirq() to annotate
- * kernel code that has to do this nevertheless (pretty much
- * the only valid case is for old/broken hardware that is
- * insanely slow).
- *
- * NOTE: in theory this might break fragile code that relies
- * on hardirq delivery - in practice we dont seem to have such
- * places left. So the only effect should be slightly increased
- * irqs-off latencies.
- */
-#ifdef CONFIG_LOCKDEP
-# define local_irq_enable_in_hardirq()	do { } while (0)
-#else
-# define local_irq_enable_in_hardirq()	local_irq_enable()
-#endif
-
 bool irq_has_action(unsigned int irq);
 extern void disable_irq_nosync(unsigned int irq);
 extern bool disable_hardirq(unsigned int irq);
#1 lore raw
The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     deaf7c4b4bf8b802cc465bb9b33fe6c76e812924
Gitweb:        https://git.kernel.org/tip/deaf7c4b4bf8b802cc465bb9b33fe6c76e812924
Author:        Thomas Gleixner <[email protected]>
AuthorDate:    Mon, 09 May 2022 21:03:43 +02:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Wed, 11 May 2022 16:27:04 +02:00

lockdep: Delete local_irq_enable_in_hardirq()

No more users and there is no desire to grow new ones.

---
 include/linux/interrupt.h | 18 ------------------
 1 file changed, 18 deletions(-)
include/linux/interrupt.h +0 -18
index f40754c..b5e06a6 100644
@@ -222,24 +222,6 @@ devm_request_any_context_irq(struct device *dev, unsigned int irq,
 
 extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id);
 
-/*
- * On lockdep we dont want to enable hardirqs in hardirq
- * context. Use local_irq_enable_in_hardirq() to annotate
- * kernel code that has to do this nevertheless (pretty much
- * the only valid case is for old/broken hardware that is
- * insanely slow).
- *
- * NOTE: in theory this might break fragile code that relies
- * on hardirq delivery - in practice we dont seem to have such
- * places left. So the only effect should be slightly increased
- * irqs-off latencies.
- */
-#ifdef CONFIG_LOCKDEP
-# define local_irq_enable_in_hardirq()	do { } while (0)
-#else
-# define local_irq_enable_in_hardirq()	local_irq_enable()
-#endif
-
 bool irq_has_action(unsigned int irq);
 extern void disable_irq_nosync(unsigned int irq);
 extern bool disable_hardirq(unsigned int irq);