projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9abf231
)
timers: Replace in_irq() with in_hardirq()
author
ye xingchen
<ye.xingchen@zte.com.cn>
Wed, 12 Oct 2022 01:26:29 +0000
(
01:26
+0000)
committer
Thomas Gleixner
<tglx@linutronix.de>
Mon, 17 Oct 2022 14:00:04 +0000
(16:00 +0200)
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
kernel/time/timer.c
patch
|
blob
|
history
diff --git
a/kernel/time/timer.c
b/kernel/time/timer.c
index
717fcb9
..
f40c88c
100644
(file)
--- 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_
hard
irq() && !(timer->flags & TIMER_IRQSAFE));
/*
* Must be able to sleep on PREEMPT_RT because of the slowpath in