From nobody Sun Jun 14 07:39:11 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 288C9423A80; Fri, 1 May 2026 19:40:36 +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=1777664441; cv=none; b=nMoN+wfvByrsvYFvF4q8iK6Xd6ndkZti+KtTz8oZQE1MhS78GjmJZvKk758BHx9+2C6tU3WiR859+TzzgyJYbsIfQGrK01zhiKqqSeI0byPR8ZqzfK2JsbLHj/XQejYGX4LxnZb4Ux0iNpc8sBh50iWiUyEA5CO05XWgojcF6Lo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777664441; c=relaxed/simple; bh=YlCRhw6wIFn2sqy9bvnvm66+PhkbBB+8NjZ5otjqoGI=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=NI0dYcd5Jm6ddka2QhQr8yLtKJQz63Peg7eQiZuy+OHTxZMRAYizfrpgW/oZw0ikg+vRR30K+3UTRUMSqRrL23JnRFYHu3Yb5nZLlvYvgIkEdDMonKIqXG30N9WSQYHvTCA1chVreLbzkn8ZAvjuXL2DkjJuLHhANMnLlRxAQ1w= 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=nNJU9c1b; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=+oKBdgVZ; 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="nNJU9c1b"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="+oKBdgVZ" Date: Fri, 01 May 2026 19:40:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1777664431; 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=x5P7X+rPj1opUKonDeS0PtiP6287NN0OXGnYGtX+JsQ=; b=nNJU9c1brPrNcT8fHMZohZFaycSQrZk1zJL7OYCdekI+d5WWuMwMhHy7nNqka0wUqhJu5e h5Mj1MRHEGHcZC17hl0HIWgfHeSSoCVQhFcDr9TK2Okj+KpTroMs8u742S+Oqz9oTaOCnj EDIqEWGeDwKlWqeRAKARaC/DJ3U6SSrRf3nf+fJClS0hMxThrNHa7xi2DJDCL3/ozUDCDh gnHAcbYzBZTYyuFgCtLOxg8zE7jrsuKST3uugbWTUK05zcU7XRYw1YjatbS6972PohxQfU TCHY/G9zz899spE6dpANN/yr097oXMqj5OAOlU2+HjAZzpr6S+uBNk6e4AYesQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1777664431; 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=x5P7X+rPj1opUKonDeS0PtiP6287NN0OXGnYGtX+JsQ=; b=+oKBdgVZ0A9UUYCjkGhlZB6YObBU4wvb+Z3Y0pMqIGvQOBvLLFSumCcP7adYQucBwLufxh lvNpdXcuykbClzBQ== 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: Switch to hrtimer_start_expires_user() Cc: Thomas Gleixner , Frederic Weisbecker , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260408114952.266001916@kernel.org> References: <20260408114952.266001916@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177766443014.3521451.8087663146176248984.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: acc071343d29c2361619b05ad50ea3de9ef9a3ac Gitweb: https://git.kernel.org/tip/acc071343d29c2361619b05ad50ea3de9= ef9a3ac Author: Thomas Gleixner AuthorDate: Wed, 08 Apr 2026 13:54:06 +02:00 Committer: Thomas Gleixner CommitterDate: Fri, 01 May 2026 21:36:12 +02:00 posix-timers: Switch to hrtimer_start_expires_user() Switch the arm and rearm callbacks for hrtimer based posix timers over to hrtimer_start_expires_user() so that already expired timers are not queued. Hand the result back to the caller, which then queues the signal. Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker Acked-by: Peter Zijlstra (Intel) Link: https://patch.msgid.link/20260408114952.266001916@kernel.org --- kernel/time/posix-timers.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c index db62cfa..436ba79 100644 --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c @@ -293,8 +293,7 @@ static bool common_hrtimer_rearm(struct k_itimer *timr) struct hrtimer *timer =3D &timr->it.real.timer; =20 timr->it_overrun +=3D hrtimer_forward_now(timer, timr->it_interval); - hrtimer_restart(timer); - return true; + return hrtimer_start_expires_user(timer, HRTIMER_MODE_ABS); } =20 static bool __posixtimer_deliver_signal(struct kernel_siginfo *info, struc= t k_itimer *timr) @@ -829,9 +828,11 @@ static bool common_hrtimer_arm(struct k_itimer *timr, = ktime_t expires, expires =3D ktime_add_safe(expires, hrtimer_cb_get_time(timer)); hrtimer_set_expires(timer, expires); =20 - if (!sigev_none) - hrtimer_start_expires(timer, HRTIMER_MODE_ABS); - return true; + /* For sigev_none pretend that the timer is queued */ + if (sigev_none) + return true; + + return hrtimer_start_expires_user(timer, HRTIMER_MODE_ABS); } =20 static int common_hrtimer_try_to_cancel(struct k_itimer *timr)