Skip to content

Commit 7b24131

Browse files
committed
rcu: Convert rcu_initiate_boost() ULONG_CMP_GE() to time_after()
This commit converts the ULONG_CMP_GE() in rcu_initiate_boost() 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 29ffebc commit 7b24131

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
@@ -1080,7 +1080,7 @@ static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags)
10801080
(rnp->gp_tasks != NULL &&
10811081
rnp->boost_tasks == NULL &&
10821082
rnp->qsmask == 0 &&
1083-
(ULONG_CMP_GE(jiffies, rnp->boost_time) || rcu_state.cbovld))) {
1083+
(!time_after(rnp->boost_time, jiffies) || rcu_state.cbovld))) {
10841084
if (rnp->exp_tasks == NULL)
10851085
WRITE_ONCE(rnp->boost_tasks, rnp->gp_tasks);
10861086
raw_spin_unlock_irqrestore_rcu_node(rnp, flags);

0 commit comments

Comments
 (0)