Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp192095ybt; Tue, 30 Jun 2020 18:11:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyte+KQ/ofGCGjsLc/i++c1ns0JSx+3jKxTvu6n3YidAN0peg91d87QDCrDpuFTsZ0Y/H5i X-Received: by 2002:a17:906:f911:: with SMTP id lc17mr21382120ejb.330.1593565905438; Tue, 30 Jun 2020 18:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593565905; cv=none; d=google.com; s=arc-20160816; b=PFar7lDg/o8S7hsp5dxv9+9P4o+OljeePWQ8YM43zo3b6QKOHvVlvc+5IH5bn2GeJV fFld1hL4sbxR2YYHouxgMmDjjVbLxn/PAwiP1ozxZQU5sdUsyovL4EZTbyGflzM7GhkO inI5fd0DRILz4SXcqyQSCLQkYA8F3MAdQdht1g1FHbfyhRRqwgWiPVZug++JyebpjdUA IDblzcbjvlbZJJoNQnLGSLfxgqWzTHOsXJRPhFBW++sD3V594fHk8EFc8HRoQ5iXF2AM A98UkGojhUg08cTpqN5+QG5/02BsetM0di2DMVp/41uEyHTOieWvVeKbiiYr9jNeT149 O44A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=u4kOjJ5JnxEhShmP7X4gqEdoMUOAydJJuFIbR2dOvL8=; b=MLIn2Gocjd3s83FPDmR9dsayFAKtzNm1IS/Z3JTNbysTeFxuRl9zFJcs3u3crWgtUO drXY1b9+vpKiJiOjOJAk3X5Dfw1/jYZlYjJQ5qLhFcSJYxbS58Pu5QTJ80mX76TutKbB gkXqfNyUHhGgVBIEgQStmjI+XeRmbw26nFgevQ8k9RFH2I0BO4ovHVxKjsivaUhG9kiz 1TrnN24XG7hNtG5BxrRN2TiQUjzEH69//9PDDQWNBrPROvCXbefZsv2Vd1hSmAbWzc4p z85zjGtEk5PUhnZXzhq+OZqmGX+4L8f0oeYMtwKhkgcxaTjJkVu2LjApQPsdU90XAULx qM1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=d5i0zGfM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn4si2917993ejb.658.2020.06.30.18.11.19; Tue, 30 Jun 2020 18:11:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=d5i0zGfM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726819AbgGABKz (ORCPT + 99 others); Tue, 30 Jun 2020 21:10:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:57162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbgGABKw (ORCPT ); Tue, 30 Jun 2020 21:10:52 -0400 Received: from lenoir.home (lfbn-ncy-1-996-218.w90-101.abo.wanadoo.fr [90.101.73.218]) (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 BD47E2078B; Wed, 1 Jul 2020 01:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593565851; bh=5QnwqZem3Sns7VPQAYf4JdpSiN/3iBgfzyx/I/rIuFk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d5i0zGfMx/F/Tn/zbng8z3I2w6DKkPsyjW1ZyCwsBcn4vIkFDuExomG6rXYZ2Zq8m 1jnztlAErO6fCBre76IbM5ssV/9aasBEjXdRCX8sBgGAsXs3ODtpAQKHaR+o4Vr4zg rR4xi7OT9t21gpgXocy8LHHGpM6I5njW/miIkjjg= From: Frederic Weisbecker To: Thomas Gleixner Cc: LKML , Frederic Weisbecker , Anna-Maria Gleixner , Peter Zijlstra , Juri Lelli Subject: [RFC PATCH 10/10] timer: Lower base clock forwarding threshold Date: Wed, 1 Jul 2020 03:10:30 +0200 Message-Id: <20200701011030.14324-11-frederic@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200701011030.14324-1-frederic@kernel.org> References: <20200701011030.14324-1-frederic@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no apparent reason for not forwarding base->clk when it's 2 jiffies late, except perhaps for past optimizations. But since forwarding has to be done at some point now anyway, this doesn't stand anymore. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Anna-Maria Gleixner Cc: Juri Lelli --- kernel/time/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 439fee098e76..25a55c043297 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -883,7 +883,7 @@ static inline void forward_timer_base(struct timer_base *base) * Also while executing timers, base->clk is 1 offset ahead * of jiffies to avoid endless requeuing to current jffies. */ - if ((long)(jnow - base->clk) < 2) + if ((long)(jnow - base->clk) < 1) return; /* -- 2.26.2