diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2022-10-12 01:26:29 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2022-10-17 16:00:04 +0200 |
commit | 8be3f96ceddb911539a53d87a66da84a04502366 (patch) | |
tree | 252e7217539466e726931c56f9f45cd051a7c494 /kernel/time | |
parent | 9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff) |
timers: Replace in_irq() with in_hardirq()
Replace the obsolete and ambiguous macro in_irq() with new
macro in_hardirq().
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/r/20221012012629.334966-1-ye.xingchen@zte.com.cn
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 717fcb9fb14a..f40c88c156fe 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -1422,7 +1422,7 @@ int del_timer_sync(struct timer_list *timer) * don't use it in hardirq context, because it * could lead to deadlock. */ - WARN_ON(in_irq() && !(timer->flags & TIMER_IRQSAFE)); + WARN_ON(in_hardirq() && !(timer->flags & TIMER_IRQSAFE)); /* * Must be able to sleep on PREEMPT_RT because of the slowpath in |