From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 485A9C2BA19 for ; Wed, 15 Apr 2020 17:11:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 138FC216FD for ; Wed, 15 Apr 2020 17:11:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586970698; bh=rL1sdTIZ7lBkSO1ah125Dy4M0JqYkG/FMNf97VUr4BM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=S/pDN8LfomALd/GqNM5TGArh96n2biZ9W0VXqTqfm9AXoZ0ljusQCWZBjb0UhZmb6 OzhQygyTrovzT0nZR5x6Iep0oUoxApzIBouTYumEVimEgx/SrCH8rgrLtEtrU9S7AD eeZqlAUvvCxStSev53+FpfSqm4Iyp3pJ0hlsdJnI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2410782AbgDORLe (ORCPT ); Wed, 15 Apr 2020 13:11:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:42796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410728AbgDORLD (ORCPT ); Wed, 15 Apr 2020 13:11:03 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 54D9621D91; Wed, 15 Apr 2020 17:11:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586970662; bh=rL1sdTIZ7lBkSO1ah125Dy4M0JqYkG/FMNf97VUr4BM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PeM4MmgUVVvlo+3JCSacIuehqy9nLyavfhctOG19/GC3JX7hRUE1akwS4VinvmRGA pERvBbQ41Bmfd0mO2xdyt22aVx9v3O5zxIBd2NA61TILoUhSV0NDOiizrhZQGfrCIc v70PO6CXbzY4ynBsLvaRMLZTwqOKQZp34Ei5xWIE= From: paulmck@kernel.org To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org, "Paul E. McKenney" Subject: [PATCH tip/core/rcu 19/19] rcu: Convert rcu_nohz_full_cpu() ULONG_CMP_LT() to time_before() Date: Wed, 15 Apr 2020 10:10:54 -0700 Message-Id: <20200415171054.9013-19-paulmck@kernel.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20200415171017.GA7821@paulmck-ThinkPad-P72> References: <20200415171017.GA7821@paulmck-ThinkPad-P72> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Paul E. McKenney" 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 --- 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