From patchwork Wed May 10 07:27:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anna-Maria Behnsen X-Patchwork-Id: 91926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3435341vqo; Wed, 10 May 2023 00:44:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ndeW6woy0bJ3oavEdps+Wb++VQifToG741sC1AQ1imiCudbPX5FZGvleS1raCbQ94DUfo X-Received: by 2002:a05:6a20:12c9:b0:100:b715:8ab2 with SMTP id v9-20020a056a2012c900b00100b7158ab2mr11377934pzg.46.1683704688073; Wed, 10 May 2023 00:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683704688; cv=none; d=google.com; s=arc-20160816; b=p4ZvaAX4BarYjLkHnSig527GKL9qOvlNe56ziK99+HunQVPL7qTLgvKq8AUVXtoeVE yBtfCVyC3V+z0yfunENGxsmjHdh0AD8/9dLwzp7h54K5er3YbTLMOJfyZy5gaqL3dm26 S+PpAMx+WXyXacyDWnS/kSwitZLWeV6eLnlf7X3pH+n3xHjwSLcJ/wgNidtT4RrtriDS 2lt+8ztNGBBYqJi6lBgfNU2Irj9oEfewiCDl8X1aQdGTiBy7cvwc1R1JEXZg+kNCyaYK UtTMQmBUge+CDgr4EA8uCncjeM4ahlMCtKOULahPKxIIqUwtIC82NU46fqdx7PPfEuWN MdDg== 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=ypjjo6K+ZjX/gE7dPsSFsIuC37ELchmIlQCCnVAGgp8=; b=Dl3jlioc64T025AmpD9Chemo6KOKWf/cU6Qw06g5Cii2Gmdll1SQAM7GgWjw3ZpYBK i4A9/mnZnK8zouU/x0PwqdHNtu65SIzuDGmdJ6gKG+AtbLeMzCVCPlvgRQnrXa3hnklE svJMYuWPofUOryDqXDlLgYi0rQCN0iuY7GcOl1u5ke5qY7E/byyH8mUYdvDQN4rZsXVZ LgiU6mJw6MF9Rjh9PSse0HQUyyrjJexxoHeqt0xCulH/V1BVqiibfPrUNH0lS7dZFWhH L1YezUf0O05wOCUNeLQvOrzHFVkhUknyc9kfCtDJ3ANL4hBUU9n/DaP6Hz0xXk6fX2dy uZyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=AZgOvS8o; 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 o16-20020a17090ac71000b0024df0aab0e2si23956559pjt.8.2023.05.10.00.44.35; Wed, 10 May 2023 00:44:48 -0700 (PDT) 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=AZgOvS8o; 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 S236057AbjEJH3K (ORCPT + 99 others); Wed, 10 May 2023 03:29:10 -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 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765492326946253354?= X-GMAIL-MSGID: =?utf-8?q?1765492326946253354?= 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 expires) * @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. */