History

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.

Paul E. McKenney committed 6 years ago

Commit e2f3ccf1 parent 7b241311 file · +1 −1Browse files

Unified · Split

kernel/rcu/tree_plugin.h+1−1
@@ -2537,7 +2537,7 @@ static bool rcu_nohz_full_cpu(void) · 2536 unmodified lines
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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t