Skip to content

Commit deaf7c4

Browse files
KAGA-KOKOPeter Zijlstra
authored andcommitted
lockdep: Delete local_irq_enable_in_hardirq()
No more users and there is no desire to grow new ones. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/8735hir0j4.ffs@tglx
1 parent dc1f789 commit deaf7c4

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

include/linux/interrupt.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -222,24 +222,6 @@ devm_request_any_context_irq(struct device *dev, unsigned int irq,
222222

223223
extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id);
224224

225-
/*
226-
* On lockdep we dont want to enable hardirqs in hardirq
227-
* context. Use local_irq_enable_in_hardirq() to annotate
228-
* kernel code that has to do this nevertheless (pretty much
229-
* the only valid case is for old/broken hardware that is
230-
* insanely slow).
231-
*
232-
* NOTE: in theory this might break fragile code that relies
233-
* on hardirq delivery - in practice we dont seem to have such
234-
* places left. So the only effect should be slightly increased
235-
* irqs-off latencies.
236-
*/
237-
#ifdef CONFIG_LOCKDEP
238-
# define local_irq_enable_in_hardirq() do { } while (0)
239-
#else
240-
# define local_irq_enable_in_hardirq() local_irq_enable()
241-
#endif
242-
243225
bool irq_has_action(unsigned int irq);
244226
extern void disable_irq_nosync(unsigned int irq);
245227
extern bool disable_hardirq(unsigned int irq);

0 commit comments

Comments
 (0)