lkml.org 
[lkml]   [2020]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH tip/core/rcu 19/19] rcu: Convert rcu_nohz_full_cpu() ULONG_CMP_LT() to time_before()
    Date
    From: "Paul E. McKenney" <paulmck@kernel.org>

    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 | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
    index 5cd27c2..5771e32 100644
    --- a/kernel/rcu/tree_plugin.h
    +++ b/kernel/rcu/tree_plugin.h
    @@ -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;
    --
    2.9.5
    \
     
     \ /
      Last update: 2020-04-15 19:11    [W:4.163 / U:0.308 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site