From nobody Tue Sep 29 06:08:46 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 D4C1345629C; Tue, 11 Aug 2026 16:14:24 +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=1786464866; cv=none; b=kTazmfNjmut1+Lcrx0OyJoA2/8AnVrYc9EhAv3uNTLY+JcGqmb0sDpebixKdsoF3vIs13OfnJAGEa5S9AQLd5kiyFsmpT99q/BGrJxLQc6RbdP8ImvyReGLcPgD9sWKS/EITIEAlxSP8QyuqDqNXIlC1S33+M8HpQjXJQumtioE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786464866; c=relaxed/simple; bh=vWfXzQvdeLzv4oYiaMUpBjnQrcq954HqyNDiJoBFquk=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Pjw9DN0NB7u6cmNt5mkwgQNtylosdrKzoHocSMK3J13xk0ViXL65TRYS9s2Mzf9TVuasTKEN1N+SeP8iJttxuaj2nl8GJhjLoRPs95iEh0Yp8sWyUYTfdtlJmub/Btx4wkZ9HyEPfR4qrV8Y9RLCVUHWazqRw5HfS2uRrUagU7w= 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=p/j+IRNO; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=icMWFfmM; 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="p/j+IRNO"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="icMWFfmM" Date: Tue, 11 Aug 2026 16:14:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786464863; 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=mczaLKZUlO+H8ld5EsKJuAQ/xwm1c3lPzy2nBlMMmzc=; b=p/j+IRNOvg9zpn4BcNWzgV+9G4tH2CjpwBEJzLqa7B5IA8QSSlnClXmPoUUI/taopBGyn7 1sdQftJaiP0YerLqBqgbErwAfFbAz94WlNslj1W3NATRmpt5/9lAJOobfIxm9gAZSpntjp R8jJfmao0EkeMAPDDS69E3vQPkaUG924NZSlaibPRqeP+QtOf1vhjLPig9thXVeICsVcwI k9V098qm+VBuHfarKGKW/07f3gG836dYZ7qeAnGj+eAhpB1hXQlpy2G57CRXZAerYt2ZG7 3DWNN22MvAhiff97yikGW1H+LAZhSsS+2TsLqPwAKGFiRULTiDHf34HVZj/t0w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786464863; 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=mczaLKZUlO+H8ld5EsKJuAQ/xwm1c3lPzy2nBlMMmzc=; b=icMWFfmMLzaGYCwe3OxdLE10raqF846yOVRKNnZFVHWf0bni82U+3ATXvcc5/ieucjVD6V 7dGcbSX1OLrp/CBQ== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh_=28Schneider_Electric=29?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] timekeeping: Use u32 for clock_was_set_seq Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260803-auxclock-nanosleep-prep-v2-2-910cbd485390@linutronix.de> References: <20260803-auxclock-nanosleep-prep-v2-2-910cbd485390@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178646486149.442315.6992542022268380732.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: 406a037ce7a03a37bf2b03010791ea9343ecc233 Gitweb: https://git.kernel.org/tip/406a037ce7a03a37bf2b03010791ea934= 3ecc233 Author: Thomas Wei=C3=9Fschuh (Schneider Electric) AuthorDate: Mon, 03 Aug 2026 12:04:33 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 11 Aug 2026 18:11:20 +02:00 timekeeping: Use u32 for clock_was_set_seq Use an explicitly sized type to make the code a bit more consistent with other fields of the datastructure and other sequence counters. Signed-off-by: Thomas Wei=C3=9Fschuh (Schneider Electric) Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260803-auxclock-nanosleep-prep-v2-2-910cbd= 485390@linutronix.de --- include/linux/hrtimer_bases.h | 2 +- include/linux/timekeeper_internal.h | 2 +- include/linux/timekeeping.h | 2 +- kernel/time/hrtimer.c | 2 +- kernel/time/timekeeping.c | 5 +++-- kernel/time/timekeeping.h | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/include/linux/hrtimer_bases.h b/include/linux/hrtimer_bases.h index 70b99e6..d4c83ec 100644 --- a/include/linux/hrtimer_bases.h +++ b/include/linux/hrtimer_bases.h @@ -84,7 +84,7 @@ struct hrtimer_cpu_base { raw_spinlock_t lock; unsigned int cpu; unsigned int active_bases; - unsigned int clock_was_set_seq; + u32 clock_was_set_seq; bool hres_active; bool deferred_rearm; bool deferred_needs_update; diff --git a/include/linux/timekeeper_internal.h b/include/linux/timekeeper= _internal.h index 9c198f6..fe077d9 100644 --- a/include/linux/timekeeper_internal.h +++ b/include/linux/timekeeper_internal.h @@ -169,7 +169,7 @@ struct timekeeper { u32 cs_ns_to_cyc_mult; u32 cs_ns_to_cyc_shift; u64 cs_ns_to_cyc_maxns; - unsigned int clock_was_set_seq; + u32 clock_was_set_seq; u8 cs_was_changed_seq; u8 clock_valid; =20 diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index 561313b..efa9442 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -303,7 +303,7 @@ struct system_time_snapshot { ktime_t monoraw; enum clocksource_ids cs_id; enum clocksource_ids hw_csid; - unsigned int clock_was_set_seq; + u32 clock_was_set_seq; u8 cs_was_changed_seq; u8 valid; }; diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 48ee17e..540561d 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -903,8 +903,8 @@ static void hrtimer_reprogram(struct hrtimer *timer, bo= ol reprogram) static bool update_needs_ipi(struct hrtimer_cpu_base *cpu_base, unsigned i= nt active) { struct hrtimer_clock_base *base; - unsigned int seq; ktime_t expires; + u32 seq; =20 /* * Update the base offsets unconditionally so the following diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index d02103b..ea2e6e5 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -1567,10 +1567,11 @@ int get_device_system_crosststamp(int (*get_time_fn) struct system_device_crosststamp *xtstamp) { u64 syscnt_cycles, cycles, now, interval_start; - unsigned int seq, clock_was_set_seq =3D 0; ktime_t base_sys, base_raw, *offs; + u32 clock_was_set_seq =3D 0; u64 nsec_sys, nsec_raw; u8 cs_was_changed_seq; + unsigned int seq; bool do_interp; struct timekeeper *tk; struct tk_data *tkd; @@ -2843,7 +2844,7 @@ void do_timer(unsigned long ticks) * * Called from hrtimer_interrupt() or retrigger_next_event() */ -ktime_t ktime_get_update_offsets_now(unsigned int *cwsseq, ktime_t *offs_r= eal, +ktime_t ktime_get_update_offsets_now(u32 *cwsseq, ktime_t *offs_real, ktime_t *offs_boot, ktime_t *offs_tai) { struct timekeeper *tk =3D &tk_core.timekeeper; diff --git a/kernel/time/timekeeping.h b/kernel/time/timekeeping.h index 198d060..4201f9e 100644 --- a/kernel/time/timekeeping.h +++ b/kernel/time/timekeeping.h @@ -4,7 +4,7 @@ /* * Internal interfaces for kernel/time/ */ -extern ktime_t ktime_get_update_offsets_now(unsigned int *cwsseq, +extern ktime_t ktime_get_update_offsets_now(u32 *cwsseq, ktime_t *offs_real, ktime_t *offs_boot, ktime_t *offs_tai);