summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree_plugin.h
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@gmail.com>2021-09-28 02:21:28 +0200
committerPaul E. McKenney <paulmck@kernel.org>2021-12-01 02:25:20 +0100
commit2407a64f8045552203ee5cb9904ce75ce2fceef4 (patch)
treef898a5bc73b69fffbaa968491f3997c9be8d33b3 /kernel/rcu/tree_plugin.h
parentrcu: Replace ________p1 and _________p1 with __UNIQUE_ID(rcu) (diff)
downloadlinux-2407a64f8045552203ee5cb9904ce75ce2fceef4.tar.xz
linux-2407a64f8045552203ee5cb9904ce75ce2fceef4.zip
rcu: in_irq() cleanup
This commit replaces the obsolete and ambiguous macro in_irq() with its shiny new in_hardirq() equivalent. Signed-off-by: Changbin Du <changbin.du@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree_plugin.h')
-rw-r--r--kernel/rcu/tree_plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
index 5199559fbbf0..599084c4c21f 100644
--- a/kernel/rcu/tree_plugin.h
+++ b/kernel/rcu/tree_plugin.h
@@ -642,7 +642,7 @@ static void rcu_read_unlock_special(struct task_struct *t)
(IS_ENABLED(CONFIG_RCU_BOOST) && irqs_were_disabled &&
t->rcu_blocked_node);
// Need to defer quiescent state until everything is enabled.
- if (use_softirq && (in_irq() || (expboost && !irqs_were_disabled))) {
+ if (use_softirq && (in_hardirq() || (expboost && !irqs_were_disabled))) {
// Using softirq, safe to awaken, and either the
// wakeup is free or there is either an expedited
// GP in flight or a potential need to deboost.