From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796057415; b=5Gs4nLaPYSyrqbcb8PEMq6dfSZmki9YBroYnQb12BM8hHPqLn4qF5tToXF8mMxag7RqN ZaGfjYMWhoWTYPYYcyG5GYLWDzkoxgyB15RMEXVozNAcNFxhVfE0Km9atP3XCE89QNggJ f2a/VhxytSj5bedqauufAiP8XceNCBZ9urbiQ6F8hTK8nFN/zf9Hhjffy//OsQ9nIDu+Q KHZFwqDDV7J8rsbIJwwrR7jqZQP64mmPTV5izJGg/YdP9ZUSRawoe51nP9TY2J/2rgZod 5cK9/4x0kUuxT5m8/Vk56W69v4QsCAxBdQqjJWrtNMrq/B5QyCWt4lLtgLRLufAFNdg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796057415; h=DMARC-Filter:From:DKIM-Signature:DKIM-Signature:Date:Subject: MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id: References:In-Reply-To:To:Cc:X-Developer-Signature:X-Developer-Key; bh=oxHVs1F9Up5aSf+36HyVPbv4W+L/5V/P7AVPOg3On7I=; b=uKvwgc53kAFeh/IZhQbrJUEO2+nWU3CJZAZi+xZpfvI620m0CR6RwT42gLlgBUmS2xTZ I1oPfC0HytAeugTdaGh/JPFI9M3lK4QWAMwph4W3AEXhMqTa7EiQfEsVdg/irf0zM6mZx XONJzfpK2UEiFLA2b1elPrU2WokORZzOlKwK12y6DZZXNB5mZZg9vGM45hqFCWWTcI8GM 8ofCvTiibFdvPzfwXOpqBDyg0YI8kHWCSPYr6oWUpKKOkKRUmN038HpWvKX6d8sxzdIC5 iFGPRJFvVQFJ5h/vTqakzeVBiRueCoI43+BgIsQlzDg9bkLr+UCBXfUoPr4dm+BV9wQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=W2Q3XSkn; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b="Mrapc/eG"; arc=none smtp.remote-ip=193.142.43.55 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE887606A32C for ; Mon, 30 Nov 2026 16:50:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AE887606A32C 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.a=rsa-sha256 header.s=2020 header.b=W2Q3XSkn; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=Mrapc/eG From: =?utf-8?q?Thomas_Wei=C3=9Fschuh_=28Schneider_Electric=29?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1796057413; h=from:from: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=oxHVs1F9Up5aSf+36HyVPbv4W+L/5V/P7AVPOg3On7I=; b=W2Q3XSknoPlcivHwQzs3Az3j4YUx7HgkwCoclMbjoV/jLpY/JwuWs1yfilg6NHCmRw5JKg pSRqJjSj+cgo0LYpdAMvV8Ak28S5d1E8dc6aBhDPMmQjkGO3Fz+OdB55slwFfmXvkS2lkX tBH7qJ09F70DNqm6CvjIESeiY6hIUQg3n5U9SutkA2dvPflwGFAbz2l2YvdYyzkTjwcpqD 1/QxznnWx13aO4jo14kpWuMAruiDflZ3YMarQtxGDYimFzeGewpe4N68R2brpblixag+O3 fpOYO+EqE1eIQkFTJdWPIL89un6+gJLzuXzkRTrsuFTO1LHVvvjYheHIgCqb4A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1796057413; h=from:from: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=oxHVs1F9Up5aSf+36HyVPbv4W+L/5V/P7AVPOg3On7I=; b=Mrapc/eGWxaGDxCmmjvW6aVDD3PKouqErXz65On09ln+OGtoFB2IAaqoQRPypj2QfjUg6+ yMXlgvqs8Ojbq6Dw== Date: Mon, 30 Nov 2026 17:50:00 +0100 Subject: [PATCH v3 1/4] timekeeping: Move timekeeper_is_core_tk() up in the file X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20261130-timekeeping-conditionals-v3-1-3f95edbfec4d@linutronix.de> References: <20261130-timekeeping-conditionals-v3-0-3f95edbfec4d@linutronix.de> In-Reply-To: <20261130-timekeeping-conditionals-v3-0-3f95edbfec4d@linutronix.de> To: John Stultz , Thomas Gleixner , Stephen Boyd , Miroslav Lichvar Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh_=28Schneider_Electric=29?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1796057406; l=1284; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=rnfZnlXpcnlJgD3ApLCjPIPoWFJDpP3PZw9/mKXWOVY=; b=I6jLUHRouz1ZtXPpzr98R5/v1IEix34DjCDK35vAkDr6QT5tbmba2k+VMISfcUFV/hGLSthZt IkQLAkc0G8vCOVWjPGwovnGR5VIgnpgyAr/VL2+eukZF9YcEv7KJEJf X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= New users are about to be introduced which require the definition earlier in the file. Move it. Signed-off-by: Thomas Weißschuh (Schneider Electric) --- kernel/time/timekeeping.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 3668bd24fa4f..ac67cb636d7b 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -93,6 +93,11 @@ static inline void tk_update_aux_offs(struct timekeeper *tk, ktime_t offs) tk->monotonic_to_aux = ktime_to_timespec64(offs); } +static inline bool timekeeper_is_core_tk(struct timekeeper *tk) +{ + return !IS_ENABLED(CONFIG_POSIX_AUX_CLOCKS) || tk->id == TIMEKEEPER_CORE; +} + /* flag for if timekeeping is suspended */ int __read_mostly timekeeping_suspended; @@ -1743,11 +1748,6 @@ int do_settimeofday64(const struct timespec64 *ts) } EXPORT_SYMBOL(do_settimeofday64); -static inline bool timekeeper_is_core_tk(struct timekeeper *tk) -{ - return !IS_ENABLED(CONFIG_POSIX_AUX_CLOCKS) || tk->id == TIMEKEEPER_CORE; -} - /** * __timekeeping_inject_offset - Adds or subtracts from the current time. * @tkd: Pointer to the timekeeper to modify -- 2.56.1