Message ID | 20230301141744.16063-3-anna-maria@linutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3658251wrd; Wed, 1 Mar 2023 06:22:19 -0800 (PST) X-Google-Smtp-Source: AK7set8xlR025lRj+WT+165eST/r0MbyBG0L6SZvb9cBXge83F3hu6l3Rm5MuseUezcR4W7XwcCl X-Received: by 2002:a17:907:2bc2:b0:87f:546d:7cb4 with SMTP id gv2-20020a1709072bc200b0087f546d7cb4mr6872682ejc.64.1677680539093; Wed, 01 Mar 2023 06:22:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677680539; cv=none; d=google.com; s=arc-20160816; b=kWpJoutmLi7AmokoOOFuSfaj/Svd5/yGYGpDzOG2RiBzE0WkBXZJc59QH/DAGqrqQn GDAldbM1LGrs7F6z54i8H4tlkV0yu9l3ViFQ3CV3QjhDEu2WJ92LpoxNNJYW59I+liFT 6Yz5QXMkbwtP0RkGyLQW9+IRGJhai3E0O2CXXNDP0DkAlTzcBg15Jf2rurgsWLE/g1uC atzoB2cKexL+bKsKmUAGz6kBiYocza4SRobU47j69OqC5NWlODzc6ICO7ks3Chdqu/RT 1KM6ykVgirI78UZSpqu/lx63GigqiBLhxJrD3qFqX2MWDH1jqslKAdZBqLu+ROgp0res J23Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=dI0Osk/OAmUYMH0JGdEpZhhzt84bkmaFLBo02yUJopk=; b=js3tmh/4hcmDRriZ81sP8zUh/micJMJeJbBDtql0wHh2WGBILxfDbUds1hFRVOojfD azJRjjjg6bdIV1JNrCreLOovPfw6h+MsOPDVfIWOal9HfeHqAVFnyFCuy8g7iKNvQIHj DU4sza30al6/ZAtOYxmhFoMNHhry+JjJ5dkeXMj2TaqCWKNCUeZ2ganL1mqV7VZ13mh2 V5OxKeNAX38nsmgZ817GepfTC7bgEvx73GSMa22qxJ17PgwAkhU6M4+lVoBjY08ryIqD 5k/Tk19zZo8nCQDs8Dc9kK8ThlgKJpl77aoHbzwwn8wQ4rRhl594j5d7zf3p4AW4c0fR 83qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RllZtvlP; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id br13-20020a170906d14d00b008d3be841ccdsi1283861ejb.326.2023.03.01.06.21.56; Wed, 01 Mar 2023 06:22:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RllZtvlP; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbjCAOSJ (ORCPT <rfc822;david.simonyants@gmail.com> + 99 others); Wed, 1 Mar 2023 09:18:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbjCAOSG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 1 Mar 2023 09:18:06 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0704C2749F for <linux-kernel@vger.kernel.org>; Wed, 1 Mar 2023 06:18:04 -0800 (PST) From: Anna-Maria Behnsen <anna-maria@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1677680283; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dI0Osk/OAmUYMH0JGdEpZhhzt84bkmaFLBo02yUJopk=; b=RllZtvlPLoBcZswhHJc6ZhEoJJgFlOOwrIYL8LeIhuaaau50JfVbyOeTHN7knaPSH3D0ck aHBLmFtcVdVAKo6GEGqgaArorj65LtFxjeM4KTw2+ElhVckeoHufXxUQdENO/xFNZj3HHy zxfInWeZXhQUwj6IEwAudBLQb6qM6f6tfsWjiFz/1KCPaHdK4n17utM8UVFmYSx+LqluPo rNU4UfhgViPD5E3ty2fepVQ2fGwFbco1BIdAuVj5LGaEFO4+ZIRFqMPGTyZYyt2898SLYE l0Exabb/QWjE9dFVDZtvOl5qNPe3I06rVnbHqJnlo0F6tAGVNu6TYo+dwlpp1A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1677680283; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dI0Osk/OAmUYMH0JGdEpZhhzt84bkmaFLBo02yUJopk=; b=2YeVth/SqIUuVhpAhfCwmY9LcAG4Bp69PIpwirO/x9u0N2rHiZh0AuHCi6DpPBdEQXPb4b vV+zGbwAnt0bpmDQ== To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra <peterz@infradead.org>, John Stultz <jstultz@google.com>, Thomas Gleixner <tglx@linutronix.de>, Eric Dumazet <edumazet@google.com>, "Rafael J . Wysocki" <rafael.j.wysocki@intel.com>, Arjan van de Ven <arjan@infradead.org>, "Paul E . McKenney" <paulmck@kernel.org>, Frederic Weisbecker <fweisbec@gmail.com>, Rik van Riel <riel@surriel.com>, Anna-Maria Behnsen <anna-maria@linutronix.de> Subject: [PATCH v5 02/18] timer: Add comment to get_next_timer_interrupt() description Date: Wed, 1 Mar 2023 15:17:28 +0100 Message-Id: <20230301141744.16063-3-anna-maria@linutronix.de> In-Reply-To: <20230301141744.16063-1-anna-maria@linutronix.de> References: <20230301141744.16063-1-anna-maria@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759175548889804637?= X-GMAIL-MSGID: =?utf-8?q?1759175548889804637?= |
Series |
timer: Move from a push remote at enqueue to a pull at expiry model
|
|
Commit Message
Anna-Maria Behnsen
March 1, 2023, 2:17 p.m. UTC
get_next_timer_interrupt() does more than simply getting the next timer
interrupt. The timer bases are forwarded and also marked as idle whenever
possible.
To get not confused, add a comment to function description.
Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
---
v5: New patch, which adds only a comment to get_next_timer_interrupt()
instead of changing the function name
---
kernel/time/timer.c | 4 ++++
1 file changed, 4 insertions(+)
Comments
On Wed, Mar 01, 2023 at 03:17:28PM +0100, Anna-Maria Behnsen wrote: > get_next_timer_interrupt() does more than simply getting the next timer > interrupt. The timer bases are forwarded and also marked as idle whenever > possible. > > To get not confused, add a comment to function description. > > Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de> > --- > v5: New patch, which adds only a comment to get_next_timer_interrupt() > instead of changing the function name > --- > kernel/time/timer.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/kernel/time/timer.c b/kernel/time/timer.c > index 63a8ce7177dd..ffb94bc3852f 100644 > --- a/kernel/time/timer.c > +++ b/kernel/time/timer.c > @@ -1915,6 +1915,10 @@ static u64 cmp_next_hrtimer_event(u64 basem, u64 expires) > * @basej: base time jiffies > * @basem: base time clock monotonic > * > + * If required, base->clk is forwarded and base is also marked as > + * idle. Idle handling of timer bases is allowed only to be done by CPU > + * itself. Idle marking you mean? Because idle handling can be done remotely after this patchset. Thanks. > + * > * Returns the tick aligned clock monotonic time of the next pending > * timer or KTIME_MAX if no timer is pending. > */ > -- > 2.30.2 >
On Tue, 11 Apr 2023, Frederic Weisbecker wrote: > On Wed, Mar 01, 2023 at 03:17:28PM +0100, Anna-Maria Behnsen wrote: > > get_next_timer_interrupt() does more than simply getting the next timer > > interrupt. The timer bases are forwarded and also marked as idle whenever > > possible. > > > > To get not confused, add a comment to function description. > > > > Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de> > > --- > > v5: New patch, which adds only a comment to get_next_timer_interrupt() > > instead of changing the function name > > --- > > kernel/time/timer.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/kernel/time/timer.c b/kernel/time/timer.c > > index 63a8ce7177dd..ffb94bc3852f 100644 > > --- a/kernel/time/timer.c > > +++ b/kernel/time/timer.c > > @@ -1915,6 +1915,10 @@ static u64 cmp_next_hrtimer_event(u64 basem, u64 expires) > > * @basej: base time jiffies > > * @basem: base time clock monotonic > > * > > + * If required, base->clk is forwarded and base is also marked as > > + * idle. Idle handling of timer bases is allowed only to be done by CPU > > + * itself. > > Idle marking you mean? Because idle handling can be done remotely after > this patchset. > Jupp, will change idle handling to "idle marking". Thanks, Anna-Maria
Le Tue, Apr 11, 2023 at 06:10:25PM +0200, Anna-Maria Behnsen a écrit : > On Tue, 11 Apr 2023, Frederic Weisbecker wrote: > > > On Wed, Mar 01, 2023 at 03:17:28PM +0100, Anna-Maria Behnsen wrote: > > > get_next_timer_interrupt() does more than simply getting the next timer > > > interrupt. The timer bases are forwarded and also marked as idle whenever > > > possible. > > > > > > To get not confused, add a comment to function description. > > > > > > Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de> > > > --- > > > v5: New patch, which adds only a comment to get_next_timer_interrupt() > > > instead of changing the function name > > > --- > > > kernel/time/timer.c | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/kernel/time/timer.c b/kernel/time/timer.c > > > index 63a8ce7177dd..ffb94bc3852f 100644 > > > --- a/kernel/time/timer.c > > > +++ b/kernel/time/timer.c > > > @@ -1915,6 +1915,10 @@ static u64 cmp_next_hrtimer_event(u64 basem, u64 expires) > > > * @basej: base time jiffies > > > * @basem: base time clock monotonic > > > * > > > + * If required, base->clk is forwarded and base is also marked as > > > + * idle. Idle handling of timer bases is allowed only to be done by CPU > > > + * itself. > > > > Idle marking you mean? Because idle handling can be done remotely after > > this patchset. > > > > Jupp, will change idle handling to "idle marking". Thanks and then please add: Reviewed-by: Frederic Weisbecker <frederic@kernel.org> (Trying to mark patches I don't need to review again on the next take :-)
diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 63a8ce7177dd..ffb94bc3852f 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -1915,6 +1915,10 @@ static u64 cmp_next_hrtimer_event(u64 basem, u64 expires) * @basej: base time jiffies * @basem: base time clock monotonic * + * If required, base->clk is forwarded and base is also marked as + * idle. Idle handling of timer bases is allowed only to be done by CPU + * itself. + * * Returns the tick aligned clock monotonic time of the next pending * timer or KTIME_MAX if no timer is pending. */