Skip to content

Commit 29ffebc

Browse files
committed
rcu: Convert ULONG_CMP_GE() to time_after() for jiffy comparison
This commit converts the ULONG_CMP_GE() in rcu_gp_fqs_loop() to time_after() to reflect the fact that it is comparing a timestamp to the jiffies counter. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent da44cd6 commit 29ffebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcu/tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ static void rcu_gp_fqs_loop(void)
17001700
!rcu_preempt_blocked_readers_cgp(rnp))
17011701
break;
17021702
/* If time for quiescent-state forcing, do it. */
1703-
if (ULONG_CMP_GE(jiffies, rcu_state.jiffies_force_qs) ||
1703+
if (!time_after(rcu_state.jiffies_force_qs, jiffies) ||
17041704
(gf & RCU_GP_FLAG_FQS)) {
17051705
trace_rcu_grace_period(rcu_state.name, rcu_state.gp_seq,
17061706
TPS("fqsstart"));

0 commit comments

Comments
 (0)