Message ID | 170308794650.398.12509210482975186136.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-7227-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2745964dyi; Wed, 20 Dec 2023 08:07:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLD/GQ7TOKHJCbmllsBHOMZVTQESWx1Yy55QCGCcUZw9iyl8zfOOa9yfqCfHqQYnKi1MoZ X-Received: by 2002:a17:903:2282:b0:1d3:b98d:596d with SMTP id b2-20020a170903228200b001d3b98d596dmr4294808plh.30.1703088452326; Wed, 20 Dec 2023 08:07:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703088452; cv=none; d=google.com; s=arc-20160816; b=HdYqBBun3POnlfoMCgWf+iVJC6FJkUdYHh21aVn1kzh5gBDQ9pN8ogCurS6vz30jJu NGE35FANZY6o6C3dbcsZiSsuiTC046DyJMV8OI/NuZutSproLBHJdU+25AUpnEQw9okf sg0R2MkHmyZI60ni8zuD0ojOAwElMmsza6G0oZrz9duXT6SjlRMbj02g5Sdb55zkQd2i JXIBpQuWtYoNaxX+izERna/UOGAWwxPlZMEfpb1I/L9FHsKznjsct8eIfKt3jhnotO2L 5i+3FwLuWd1JovC0DCnhXjVdKWTKwF9R1GmSjldOEXGCaE7MtL4C3u5JNNU/z30fVtIq pXWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=o7xjpCVJjkT15ERbs8ASkY/KG3iwQ75AwhuRfp2uHko=; fh=IdquJyaazQ3wXWxdOExnpctJRLX4Jw3HEb/tnyKonzY=; b=cf0gdIpqbN3B7R/gRDf0KgcxpjkcuN19LXS+I2Htq+kmHdyoiCCa/WvAyMfP28xUNO 53tqEfPRQHOs654a4Ge7cqnb+R7LSi5v58T4yr0PNNN9Fw9Bu2fUccxuoeVPNu8M9Qmv CUPjqOFos1D+AJJf3JR65NmKRXbDNHgKEIaKni9+zOOVvareF4Ma8Ox6OkfNajsxhJWN Vfikb/Ds3ojvkI2oyrlalqZrZtSqAS1zadyHCQFc8D/JzcI0r0jQP/777lmJFk8zjgYa v7zZ026yR7HTuDpem9Yl2mnm1IXwC4ZVZ6Mnc2xARkN/cltbc+RG1Fy/mBbxVzN8CYAT 9CNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Ki3n8obl; dkim=neutral (no key) header.i=@linutronix.de header.b="gsh87/vq"; spf=pass (google.com: domain of linux-kernel+bounces-7227-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7227-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k128-20020a633d86000000b005cdc05e6631si2615539pga.261.2023.12.20.08.07.31 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 08:07:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7227-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Ki3n8obl; dkim=neutral (no key) header.i=@linutronix.de header.b="gsh87/vq"; spf=pass (google.com: domain of linux-kernel+bounces-7227-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7227-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5AC9BB268F1 for <ouuuleilei@gmail.com>; Wed, 20 Dec 2023 16:01:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE35148CCC; Wed, 20 Dec 2023 15:59:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Ki3n8obl"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gsh87/vq" X-Original-To: linux-kernel@vger.kernel.org Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 045204778A; Wed, 20 Dec 2023 15:59:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 20 Dec 2023 15:59:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1703087947; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o7xjpCVJjkT15ERbs8ASkY/KG3iwQ75AwhuRfp2uHko=; b=Ki3n8oblgJjMWq+zAyVMwqvcXriNkJzTfAKUgwe6ccE83xm5ReHVhyeOEfuEk3Vrd7W2wP mg/ZkyFXVnuFwGI6dvShdnafOUT6z33Kl9rzpr2h1Jb2llwcek5g9jEirhNcuSjKgYZxQp ncY5pX0TK/ECOZ61YQ7/PaJAycVGGcf3cJUwrHLzPkTbd9q9Kybbnj60uhaYKHh6CnDnoE 7tnrFSfpQRu0pnWb8CYl2D7Aor4kDxZbCs0DtReBI0KC4tYzLQFrfb39rTQZsrokEEh+wn q2iL2GZ5zMnpuorQnAycYGh1ogeEa3dVJFtJDTj8TLnquPJo2SfkrxcXqiqSAA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1703087947; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o7xjpCVJjkT15ERbs8ASkY/KG3iwQ75AwhuRfp2uHko=; b=gsh87/vq/OVT8aC5TCUnqvwg4zvoPZYrNGRy82HXSvwJB0M2uIAdA1tg63JpOyqXTH3FdP UDjzAkHNphYIFpAQ== From: "tip-bot2 for Anna-Maria Behnsen" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] timers: Use already existing function for forwarding timer base Cc: "Anna-Maria Behnsen" <anna-maria@linutronix.de>, Thomas Gleixner <tglx@linutronix.de>, Frederic Weisbecker <frederic@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231201092654.34614-11-anna-maria@linutronix.de> References: <20231201092654.34614-11-anna-maria@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Message-ID: <170308794650.398.12509210482975186136.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784071219155282403 X-GMAIL-MSGID: 1785817676787915664 |
Series |
[tip:,timers/core] timers: Use already existing function for forwarding timer base
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Dec. 20, 2023, 3:59 p.m. UTC
The following commit has been merged into the timers/core branch of tip: Commit-ID: 7a39a5080ef0e3cf233d92165f6a778f08a08244 Gitweb: https://git.kernel.org/tip/7a39a5080ef0e3cf233d92165f6a778f08a08244 Author: Anna-Maria Behnsen <anna-maria@linutronix.de> AuthorDate: Fri, 01 Dec 2023 10:26:32 +01:00 Committer: Thomas Gleixner <tglx@linutronix.de> CommitterDate: Wed, 20 Dec 2023 16:49:38 +01:00 timers: Use already existing function for forwarding timer base There is an already existing function for forwarding the timer base. Forwarding the timer base is implemented directly in get_next_timer_interrupt() as well. Remove the code duplication and invoke __forward_timer_base() instead. Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lore.kernel.org/r/20231201092654.34614-11-anna-maria@linutronix.de --- kernel/time/timer.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 5b02e16..1a73d39 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -1939,15 +1939,9 @@ u64 get_next_timer_interrupt(unsigned long basej, u64 basem) /* * We have a fresh next event. Check whether we can forward the - * base. We can only do that when @basej is past base->clk - * otherwise we might rewind base->clk. + * base. */ - if (time_after(basej, base->clk)) { - if (time_after(nextevt, basej)) - base->clk = basej; - else if (time_after(nextevt, base->clk)) - base->clk = nextevt; - } + __forward_timer_base(base, basej); if (time_before_eq(nextevt, basej)) { expires = basem;