From nobody Sun Feb 8 14:07:28 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 6B2BBC7EE24 for ; Mon, 5 Jun 2023 15:09:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234480AbjFEPIv (ORCPT ); Mon, 5 Jun 2023 11:08:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233842AbjFEPI3 (ORCPT ); Mon, 5 Jun 2023 11:08:29 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DB2DE8; Mon, 5 Jun 2023 08:08:28 -0700 (PDT) Date: Mon, 05 Jun 2023 15:08:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1685977707; 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=VWaW9fnh5vUHZdZt/dtxYV4BBWkrmqOyozBfaB549So=; b=qxbgp0LpJ0pR3t8915lzBTbEuL+0+26zeEuvkcchcei8XLzGog0MJflkE0CQFLnt9Jb326 uA0Ktx2aqWi7r83nR9a5SULyl/wAS0AurkAWqm2GgiIV6+4TlVicL/NxSI/meHXVrmXv9Q KJkc2EnoeF1uUsqLb3YdY9ZFVee5i70p6aJD0f/K8IVSK92JBzKuUoW5hxT+j1OTkvgNA0 6BBlQPPaRwVHTo/MJj6WInzmbqm/s47TrPEkQt7BjISMzSM2IGIMZp2lGmAXaAKvTMzo/V kCoISDUpRS/JFyVgs91MiaWzNZU3g1NDyYahX7Ah4G/Ij16GochL/mP0DqxH/A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1685977707; 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=VWaW9fnh5vUHZdZt/dtxYV4BBWkrmqOyozBfaB549So=; b=UYTGxgagK0f7lNO0a9Z4gmyEPio66F3W9NNlKkugJ2NRhax1Ho3qTFYMuWP6n0i+ZvmXF4 QGRe1waFYGWGHUDQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] posix-timers: Clarify posix_timer_rearm() comment Cc: Thomas Gleixner , Frederic Weisbecker , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230425183313.724863461@linutronix.de> References: <20230425183313.724863461@linutronix.de> MIME-Version: 1.0 Message-ID: <168597770638.404.10111309739897353369.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: 93a62291070d2836b7cbaf20febadae6ae33934a Gitweb: https://git.kernel.org/tip/93a62291070d2836b7cbaf20febadae6a= e33934a Author: Thomas Gleixner AuthorDate: Tue, 25 Apr 2023 20:49:22 +02:00 Committer: Thomas Gleixner CommitterDate: Mon, 05 Jun 2023 17:03:38 +02:00 posix-timers: Clarify posix_timer_rearm() comment Yet another incomprehensible piece of art. Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker Link: https://lore.kernel.org/r/20230425183313.724863461@linutronix.de --- kernel/time/posix-timers.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c index fb92036..f1a7c62 100644 --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c @@ -275,15 +275,9 @@ static void common_hrtimer_rearm(struct k_itimer *timr) } =20 /* - * This function is exported for use by the signal deliver code. It is - * called just prior to the info block being released and passes that - * block to us. It's function is to update the overrun entry AND to - * restart the timer. It should only be called if the timer is to be - * restarted (i.e. we have flagged this in the sys_private entry of the - * info block). - * - * To protect against the timer going away while the interrupt is queued, - * we require that the it_requeue_pending flag be set. + * This function is called from the signal delivery code if + * info->si_sys_private is not zero, which indicates that the timer has to + * be rearmed. Restart the timer and update info::si_overrun. */ void posixtimer_rearm(struct kernel_siginfo *info) {