Commit e2f3ccfa authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 7b241311
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;