summaryrefslogtreecommitdiff
path: root/include/linux/preempt.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-10-24 19:06:51 +0100
committerThomas Gleixner <tglx@linutronix.de>2025-10-24 21:39:27 +0200
commit70e0a80a1f3580ccf5bc1f34dbb433c67d9d8d00 (patch)
treed5c79d700af727e1dca0859e5931ec48df370e0d /include/linux/preempt.h
parent211ddde0823f1442e4ad052a2f30f050145ccada (diff)
downloadlwn-70e0a80a1f3580ccf5bc1f34dbb433c67d9d8d00.tar.gz
lwn-70e0a80a1f3580ccf5bc1f34dbb433c67d9d8d00.zip
treewide: Remove in_irq()
This old alias for in_hardirq() has been marked as deprecated since 2020; remove the stragglers. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://patch.msgid.link/20251024180654.1691095-1-willy@infradead.org
Diffstat (limited to 'include/linux/preempt.h')
-rw-r--r--include/linux/preempt.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/preempt.h b/include/linux/preempt.h
index 102202185d7a..d964f965c8ff 100644
--- a/include/linux/preempt.h
+++ b/include/linux/preempt.h
@@ -134,11 +134,9 @@ static __always_inline unsigned char interrupt_context_level(void)
/*
* The following macros are deprecated and should not be used in new code:
- * in_irq() - Obsolete version of in_hardirq()
* in_softirq() - We have BH disabled, or are processing softirqs
* in_interrupt() - We're in NMI,IRQ,SoftIRQ context or have BH disabled
*/
-#define in_irq() (hardirq_count())
#define in_softirq() (softirq_count())
#define in_interrupt() (irq_count())