Skip to content

Commit e2f3ccf

Browse files
committed
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 <[email protected]>
1 parent 7b24131 commit e2f3ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcu/tree_plugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2537,7 +2537,7 @@ static bool rcu_nohz_full_cpu(void)
25372537
#ifdef CONFIG_NO_HZ_FULL
25382538
if (tick_nohz_full_cpu(smp_processor_id()) &&
25392539
(!rcu_gp_in_progress() ||
2540-
ULONG_CMP_LT(jiffies, READ_ONCE(rcu_state.gp_start) + HZ)))
2540+
time_before(jiffies, READ_ONCE(rcu_state.gp_start) + HZ)))
25412541
return true;
25422542
#endif /* #ifdef CONFIG_NO_HZ_FULL */
25432543
return false;

0 commit comments

Comments
 (0)