From: ye xingchen Date: Wed, 12 Oct 2022 01:26:29 +0000 (+0000) Subject: timers: Replace in_irq() with in_hardirq() X-Git-Tag: v6.6.17~6024^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8be3f96ceddb911539a53d87a66da84a04502366;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Thomas Gleixner Acked-by: John Stultz Link: https://lore.kernel.org/r/20221012012629.334966-1-ye.xingchen@zte.com.cn --- diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 717fcb9..f40c88c 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