summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree_plugin.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-04-10 17:05:22 -0700
committerPaul E. McKenney <paulmck@kernel.org>2020-04-27 11:01:17 -0700
commite2f3ccfa62001994ed3e81c309face75aaa8d372 (patch)
treef04ddce9919c1b893a61e66ae09467adb1a2cf31 /kernel/rcu/tree_plugin.h
parent7b2413111a630469282c427033818977515ea592 (diff)
downloadlinux-e2f3ccfa62001994ed3e81c309face75aaa8d372.tar.gz
linux-e2f3ccfa62001994ed3e81c309face75aaa8d372.tar.bz2
linux-e2f3ccfa62001994ed3e81c309face75aaa8d372.zip
rcu: Convert rcu_nohz_full_cpu() ULONG_CMP_LT() to time_before()
This commit converts the ULONG_CMP_LT() in rcu_nohz_full_cpu() to time_before() to reflect the fact that it is comparing a timestamp to the jiffies counter. 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 5cd27c2916c0..5771e32a3840 100644
--- a/kernel/rcu/tree_plugin.h
+++ b/kernel/rcu/tree_plugin.h
@@ -2537,7 +2537,7 @@ static bool rcu_nohz_full_cpu(void)
#ifdef CONFIG_NO_HZ_FULL
if (tick_nohz_full_cpu(smp_processor_id()) &&
(!rcu_gp_in_progress() ||
- ULONG_CMP_LT(jiffies, READ_ONCE(rcu_state.gp_start) + HZ)))
+ time_before(jiffies, READ_ONCE(rcu_state.gp_start) + HZ)))
return true;
#endif /* #ifdef CONFIG_NO_HZ_FULL */
return false;