]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
rcu: Convert rcu_nohz_full_cpu() ULONG_CMP_LT() to time_before()
authorPaul E. McKenney <paulmck@kernel.org>
Sat, 11 Apr 2020 00:05:22 +0000 (17:05 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Apr 2020 18:01:17 +0000 (11:01 -0700)
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 <paulmck@kernel.org>
kernel/rcu/tree_plugin.h

index 5cd27c2916c0ab15387b0354803f8e0897af89bd..5771e32a38405424db6b487f41ce53d513015629 100644 (file)
@@ -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;