From nobody Tue Sep 29 06:09:19 2026 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 D413B4570E3; Tue, 11 Aug 2026 16:14:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786464869; cv=none; b=CeCeoh0XVD6aUBNanngdRVFLX6Po0w+13vCEBFh2YEeUD7l2LalylN7kKEQy+kctLo0xNobemySr7VMtClwd9qH5E7nmch91Qz76PD0iZaemSga5DnX/IH0KfuEIkcmrav3p6bQvIb7nmdwcmbHbVCjfNTCBZoiibNfo1MxfjkA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786464869; c=relaxed/simple; bh=DKDy8x43BF12C9EknBCExPn0d8x+IG3veHZfl/XIQ6A=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=gCG8C9nB50DgWYYAtI/Cq3iG7WoAlnkWjcLfsC0eULFxVX9g9WZzcX4P5hjQd5txPOuckasHSju4y8UjyNVC6oDKe7D9q0IQTzTR8UcmITOMe/G2cyJDBV/UGEq2LeNFitOzIVVzMuCdDKXey5arss6InLgTyIoy8GdY5G6y6as= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=1M9/9cum; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=3O12bmwh; arc=none smtp.client-ip=193.142.43.55 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1M9/9cum"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="3O12bmwh" Date: Tue, 11 Aug 2026 16:14:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786464866; 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=MrncQlETYXy2or1t+E7AfOGYcu7E8wzb9r9GnZEqEXg=; b=1M9/9cumEMKiyYjfriRj5GYvnWcHWjJeKPC+uRFxdPbADNasKyY3zgM4Xwts5wHMqTMqws DTzdLMngHy+GKVyThQ13R+mOWIZqPEoSwgAywwjphnObpKByPNXTCyk9oUHAgw1y7RzrD8 qBw3Lg+EgHXgv403O2NG1gkdcCwhmy05drxRZYVPucat4MJB4RanUhW8nGvAQqqidGIJSb psUogo//iIoHjsMynHnJIjT8943F9bKsFyz3tkhHtMxfD33L5pt3PD9aSin+3Jq0Qjp9XL RriSPHEjLGXbBNy8D+RCSWOHMHD1+T8NzeoHnoPeniApo2nK2vsklWrySPk+Ew== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786464866; 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=MrncQlETYXy2or1t+E7AfOGYcu7E8wzb9r9GnZEqEXg=; b=3O12bmwhVnbpOy6FbtUv/hSvW9fVtb/uYylf7/RtzQb4XjVPtWt9HEjXzpBWSU7wFfZgt6 c+NdDPAJcRmGmECQ== From: "tip-bot2 for Liang Hao" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] hrtimer: Account nr_retries on recovered interrupt retries Cc: Liang Hao , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260731150408.19554-1-haohlliang@gmail.com> References: <20260731150408.19554-1-haohlliang@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178646486482.442315.15933639261888153607.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/core branch of tip: Commit-ID: 32a05ba399fc52661f59f38efd2e606f45eb2c8f Gitweb: https://git.kernel.org/tip/32a05ba399fc52661f59f38efd2e606f4= 5eb2c8f Author: Liang Hao AuthorDate: Fri, 31 Jul 2026 23:04:08 +08:00 Committer: Thomas Gleixner CommitterDate: Tue, 11 Aug 2026 18:08:24 +02:00 hrtimer: Account nr_retries on recovered interrupt retries Re-arranging hrtimer_interrupt() switched the retry path to a local counter and dropped the update of cpu_base->nr_retries, leaving the field exported via /proc/timer_list stuck at zero. Increment nr_retries only when another pass through the expiry loop is started; the third attempt that falls through to hang handling is still accounted by nr_hangs alone. Fixes: 288924384856 ("hrtimer: Re-arrange hrtimer_interrupt()") Signed-off-by: Liang Hao Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260731150408.19554-1-haohlliang@gmail.com --- kernel/time/hrtimer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 01890b7..48ee17e 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -2254,8 +2254,10 @@ retry: expires_next =3D hrtimer_update_next_event(cpu_base); cpu_base->hang_detected =3D false; if (expires_next < now) { - if (++retries < 3) + if (++retries < 3) { + cpu_base->nr_retries++; goto retry; + } =20 delta =3D ktime_sub(now, entry_time); cpu_base->max_hang_time =3D max_t(unsigned int, cpu_base->max_hang_time,= delta);