From nobody Wed Feb 11 10:52:45 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CE8BC77B7D for ; Wed, 10 May 2023 07:29:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236066AbjEJH3M (ORCPT ); Wed, 10 May 2023 03:29:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235902AbjEJH2z (ORCPT ); Wed, 10 May 2023 03:28:55 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE07E7ABF for ; Wed, 10 May 2023 00:28:38 -0700 (PDT) From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1683703717; 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=ypjjo6K+ZjX/gE7dPsSFsIuC37ELchmIlQCCnVAGgp8=; b=AZgOvS8o2/I6ef73VDPLLedAE04KQCERCWRx57+Qq12U2DNtp3JBH68p28ucBoooUtyHkC 0WIkq7ePGQ8ZeLGivNKdHV16tlQDtR1BAtWPCbfu3wbm9RmCiBSSsQM1swY62dVY5oU9L2 4QlsV5oN3SD5Jg/c3ABY968azlsTv4dk9/u/eMrL/InOR6TeEnXUtxL9CUZYiBrcKBxqwR FaQFS0c04XD00SBcG5zIUf3wJ2UhTFVZKtL+smq02AKE2ISeh8b7d4weeQZ5pvtgpRM3Oz J63arhhI61zXxGlgf1tf6JmHc5IQUwjMxsJbhwMDcOVP9gDLAO9DWpoEfdRlMg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1683703717; 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=ypjjo6K+ZjX/gE7dPsSFsIuC37ELchmIlQCCnVAGgp8=; b=UapTFIp4zMIufwrsE4Vj0V0MTB6rsOocC4NfL+/mCZMHsa52cVBZJ/vfYoSEqfvDfCIf2a 7ZIXGQGM1kUlU+Dw== To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra , John Stultz , Thomas Gleixner , Eric Dumazet , "Rafael J . Wysocki" , Arjan van de Ven , "Paul E . McKenney" , Frederic Weisbecker , Rik van Riel , Steven Rostedt , Sebastian Siewior , Giovanni Gherdovich , Lukasz Luba , "Gautham R . Shenoy" , Anna-Maria Behnsen , Frederic Weisbecker Subject: [PATCH v6 03/21] timer: Add comment to get_next_timer_interrupt() description Date: Wed, 10 May 2023 09:27:59 +0200 Message-Id: <20230510072817.116056-4-anna-maria@linutronix.de> In-Reply-To: <20230510072817.116056-1-anna-maria@linutronix.de> References: <20230510072817.116056-1-anna-maria@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Frederic Weisbecker --- v6: s/handling/marking 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 6e251e3cf659..0699fd14d00a 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -1912,6 +1912,10 @@ static u64 cmp_next_hrtimer_event(u64 basem, u64 exp= ires) * @basej: base time jiffies * @basem: base time clock monotonic * + * If required, base->clk is forwarded and base is also marked as + * idle. Idle marking 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. */ --=20 2.30.2