From nobody Tue Sep 29 06:59:15 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 A5DD841F349; Tue, 11 Aug 2026 09:16:41 +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=1786439803; cv=none; b=sMKmnO2NeGhLCctWWvInNZxUSa8rN4ftCjVhsYnUGUFgHjJ9fV82ZAsjRWiuM40uHaILsxYpX+WyG6dAuIdcSxKB1WfwTZk2TSydNfjatkYfCAkMnVsSZx8cAjha7FG5IrPlywZ/HFrmHUA99mTwcWmZPu3vWMk7vhdCtGilkMs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786439803; c=relaxed/simple; bh=kfkBplPplbtnBw10hVpoYYlxuClVwsOY9KOO1zrw6DA=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=cb7wV22TtXxpAdeBBo8qkkRk/8PhZPtZ1J0IYMbt981ZWVzqpJgPVDUpxQe+O/18a/6yN3ExsJiPl1k7B5COlLba5mcPrBfHC2l7wE0VWEwRaHm0c9lwheqZ7hvDfVG4VZvSeZPmrkzRelZbmkggfKq/pRPSVszfx1cQgRBvoNM= 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=V5NkX6vF; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=nHMVD+XU; 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="V5NkX6vF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="nHMVD+XU" Date: Tue, 11 Aug 2026 09:16:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786439799; 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=GkgSpO4WfbmepXIJacEGF730+oRIpp+ay72H5F78Zuc=; b=V5NkX6vFlxOtmPDY7ptgz4vHq0R21IYfHy12bJZNcLhQfrPSECha0djKjkiPOLFeXytolO MdFOgXGwNXKjG/OocmzEBja3uTyeHRm3kHfbExpfoDY+UOS2nb+aR6TVrXZXBRNDyRBk4f dyWUcr+WJKEuspXn2dnV5DR69oWGFUUR6+jrVCNjo+N3NEAtrV2+d3cUz1wMQ00c9E9J5g qSuoIMRmpkEYY92ahXVxIVkJIQfnC7HmBojSU0Yj6eFWJkYglZnw1Dmb4ZHWMBxenj0NtQ X9yYVHXsHAp+oB0RuoIVwTH8sGxMrBIdDgVhANmYNhiA3i3T/lLBcRmLkBu7nA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786439799; 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=GkgSpO4WfbmepXIJacEGF730+oRIpp+ay72H5F78Zuc=; b=nHMVD+XUjRm4+c9XbMVLuJxWmFFQSC2whW0dVrTRB42MwmSdI0CtIv6UfKfGISwzJXeHJu 6crWuTRB9Az3JfDw== 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: Remove the unused ktime_get_clock_ts64() Cc: thomas.weissschuh@linutronix.de, Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260731-timekeeping-aux-must-check-v1-1-11ae93068497@linutronix.de> References: <20260731-timekeeping-aux-must-check-v1-1-11ae93068497@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178643979794.442315.9149284718512494157.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: 1b515771872174553fe70eadb8efecfa49035922 Gitweb: https://git.kernel.org/tip/1b515771872174553fe70eadb8efecfa4= 9035922 Author: Thomas Wei=C3=9Fschuh (Schneider Electric) AuthorDate: Fri, 31 Jul 2026 16:20:14 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 11 Aug 2026 11:12:43 +02:00 timekeeping: Remove the unused ktime_get_clock_ts64() The last user was removed in commit a6d799608e6a ("ptp: Switch to ktime_get_snapshot_id() for pre/post timestamps"). Signed-off-by: Thomas Wei=C3=9Fschuh (Schneider Electric) Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260731-timekeeping-aux-must-check-v1-1-11a= e93068497@linutronix.de --- include/linux/timekeeping.h | 1 - kernel/time/timekeeping.c | 34 ---------------------------------- 2 files changed, 35 deletions(-) diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index b4191a8..ca4a881 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -44,7 +44,6 @@ extern void ktime_get_ts64(struct timespec64 *ts); extern void ktime_get_real_ts64(struct timespec64 *tv); extern void ktime_get_coarse_ts64(struct timespec64 *ts); extern void ktime_get_coarse_real_ts64(struct timespec64 *ts); -extern void ktime_get_clock_ts64(clockid_t id, struct timespec64 *ts); =20 /* Multigrain timestamp interfaces */ extern void ktime_get_coarse_real_ts64_mg(struct timespec64 *ts); diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index c1863f2..4e6d594 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -1942,40 +1942,6 @@ void ktime_get_raw_ts64(struct timespec64 *ts) EXPORT_SYMBOL(ktime_get_raw_ts64); =20 /** - * ktime_get_clock_ts64 - Returns time of a clock in a timespec - * @id: POSIX clock ID of the clock to read - * @ts: Pointer to the timespec64 to be set - * - * The timestamp is invalidated (@ts->sec is set to -1) if the - * clock @id is not available. - */ -void ktime_get_clock_ts64(clockid_t id, struct timespec64 *ts) -{ - /* Invalidate time stamp */ - ts->tv_sec =3D -1; - ts->tv_nsec =3D 0; - - switch (id) { - case CLOCK_REALTIME: - ktime_get_real_ts64(ts); - return; - case CLOCK_MONOTONIC: - ktime_get_ts64(ts); - return; - case CLOCK_MONOTONIC_RAW: - ktime_get_raw_ts64(ts); - return; - case CLOCK_AUX ... CLOCK_AUX_LAST: - if (IS_ENABLED(CONFIG_POSIX_AUX_CLOCKS)) - ktime_get_aux_ts64(id, ts); - return; - default: - WARN_ON_ONCE(1); - } -} -EXPORT_SYMBOL_GPL(ktime_get_clock_ts64); - -/** * timekeeping_valid_for_hres - Check if timekeeping is suitable for hres */ int timekeeping_valid_for_hres(void)