Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp625087ybt; Mon, 6 Jul 2020 18:34:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOzkCy2IQmWzLvz4UKqeYLKwWD5dmRIQ9tgOtzim3WXaUi9zGqBkLcOJMIL1LD/O09rV3i X-Received: by 2002:a05:6402:b4c:: with SMTP id bx12mr2095076edb.157.1594085639882; Mon, 06 Jul 2020 18:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594085639; cv=none; d=google.com; s=arc-20160816; b=yS1jPN9tvmhflWG4e/isyH4RjxfNM6XcPMIa+j6bypn+xPa8K1YunRanHUaxWIDbZ+ fObWWL+trOKfqxGQMoOXuTV4fzP6f2U2kZp2j5o+K6CkdHnCcgVNLkcJXXZHuHDDh3b+ iO2M34Ag21Q4EGXxsOt9oK7mVM+XMmKEtf2X2OCiopVTULSEOm/Wnoa57eetOYbk7qyk 8J0cMOn8q7uDYOKQ9u2Td0OhKxcdgx895IAMfaMyvA3y5iXVwcdG5F4F4kDaCKV7tqQx LamaMd79IRz1i7t/ZXlX/Mq95QTilmL60RZyVrk82JJvjpZmG1j/bBLWspvVWmIgpraK zX1A== 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=bcoikIiPOrO175AJABPn1bLAmE5uqWMgU0+n9cePNPs=; b=LquW6lWdkqZF0IUGzpgfVxvxk0AN6PRcNY3jdfrUfIAww++GvPQYK3/BIf2B185AJF Qoms1b8cRB0VM6nY1IYHV6Aoo7LJrWZzcteEqswJhWk/j6tppdaUoHLDEzs+sUERys48 deTmxYHwrgqOd2ixDXCKg9/ZbKiIo1hELQXblD9Ot4jAbQ5ccyjKlhi+EOXkrsIr84PK cgLWxjHfsorLoN6lBz04HUfxsqH9uo9TIfhAdO6UtxvWZGlfwWjyaLwpFS+Kw5dHaT+L paeYOaqglKnDutmWocxS/Sb/mePvMbAxxsszuc6JrTYjwfvM+RVwAyN5/ul1UaDcAdC4 PdNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CZ4WHvwf; 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 bg25si13948652ejb.230.2020.07.06.18.33.36; Mon, 06 Jul 2020 18:33:59 -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=CZ4WHvwf; 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 S1728059AbgGGBdV (ORCPT + 99 others); Mon, 6 Jul 2020 21:33:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:38874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728036AbgGGBdU (ORCPT ); Mon, 6 Jul 2020 21:33:20 -0400 Received: from lenoir.home (lfbn-ncy-1-317-216.w83-196.abo.wanadoo.fr [83.196.152.216]) (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 010FC20708; Tue, 7 Jul 2020 01:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594085600; bh=Yglo1nLyXn5lD9ndDoMXcf1QbBt/8Mm+tqMH0fT+dJI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CZ4WHvwfaaBUpw4B2hj1E7lekiv3wFCMeAxrH6P3tIQ/LAbA0vFS7CuE4Mrq5lcv7 G6CUzSLDIMt5vtsmhmjAWqjoF1++HhCTE+ZY9ucrT1MgQSM+5aNw88sddFRafHiRRd 3Rp+gmu7tYCKIzh8k9CnYDqIiIXeAcDt2aoKqEJA= From: Frederic Weisbecker To: Thomas Gleixner Cc: LKML , Frederic Weisbecker , Anna-Maria Gleixner , Peter Zijlstra , Juri Lelli Subject: [PATCH 9/9] timer: Lower base clock forwarding threshold Date: Tue, 7 Jul 2020 03:32:53 +0200 Message-Id: <20200707013253.26770-10-frederic@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200707013253.26770-1-frederic@kernel.org> References: <20200707013253.26770-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 nothing that prevents us from forwarding the base clock if it's one jiffy off. This reason for this arbitrary limit is historical and doesn't seem to 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 60126d5c79e1..814eaf42a8b5 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -891,7 +891,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