From nobody Mon Feb 9 00:53:50 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 D921E31619D for ; Wed, 7 Jan 2026 10:37:15 +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=1767782237; cv=none; b=ARZXG86FX7uZQg/Y9QSh3pr7HH2MRUvuB1u9TZQSfe6E0w9rAsLHxmtFa4pSNKvD6LHxw01IHI084SxhZFvXRuhjJhUuKG4tRSHoNecdlpBTOKbmOz0OU+/WH0j7PJ3kSbLSKZkD4Ra9w0FMLU1dYUpP8azPmToGvBkecBd+SQI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767782237; c=relaxed/simple; bh=2iOxU2mpIMgo49sNzzRrsdS2mV3d6H2RVLUOTmkJCgc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lsLMf1KKQUx2p2RIckGTcCvD3KSEy+P8u2x2bJuVqLTVXZa04PGfcc3SOpFXbTS0HxcBjZP1BIG2Nx/i8ShxUvup/mHpXqpl2S7Jf8ac4KSJtVwZf1YqacImMPVCk6yylUEly7YOGC8cczlJkeJ26GtkHUmT6dwQtTp0t0XNfrw= 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=hnaZ7vPH; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XZvDvySS; 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="hnaZ7vPH"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XZvDvySS" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1767782228; 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=fgs2QBMXKQ7T0sk9wkrlUvS2p3O+tb9owiX1MxnWMpI=; b=hnaZ7vPHz172UenEBDWVBcuhJWBpW6lXMvVriG+lnsK1BjN/qV1H690S+5wJ+ltBMoe3Rf C7VZV84SoHHpmkGd9JZw8UA82E3PQ9AO/+8oo9UUNxcj9OBCyg+8qtfxpifT6KapS8y8a+ iIckYhGSTzjzMFXVbRJD0z38gVKsdlGiU2fXVrLCHR5uBxfGUZQPSHfSDFhWjDG9Jsj9lV 7a+0cQHuTQxtoxn84rNWYhbT1PSmBNUW7YGHSKjMn7/3uS6mg+31hZp/sLZ5OFZ/4MxLXT tAmKABTepwqUWn2q50MDyh3NL6Q4Zxbg+nWUoG86WQKa/sqoQgROFH6iigv9Dw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1767782228; 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=fgs2QBMXKQ7T0sk9wkrlUvS2p3O+tb9owiX1MxnWMpI=; b=XZvDvySSbn5pIaA4XsioG606A83iQu9LVDReE9Lsv/Scp1ot+u3s6qnaQwDC1c8OCh6/P9 MoYQhyJnEdoGMiAg== Date: Wed, 07 Jan 2026 11:36:57 +0100 Subject: [PATCH 2/3] hrtimer: Remove public definition of HIGH_RES_NSEC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260107-hrtimer-header-cleanup-v1-2-1a698ef0ddae@linutronix.de> References: <20260107-hrtimer-header-cleanup-v1-0-1a698ef0ddae@linutronix.de> In-Reply-To: <20260107-hrtimer-header-cleanup-v1-0-1a698ef0ddae@linutronix.de> To: Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1767782219; l=1673; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=2iOxU2mpIMgo49sNzzRrsdS2mV3d6H2RVLUOTmkJCgc=; b=5KkQaq/XwFTM7BiaZD3vzNkohDeg6zy+GiBT70MKMVIIlH85p5Fh51ez/qlxYFkYa6CZtKpUT HfHZnDsa7TWCrI458IumyfKVK4pRNypNPWUca4pQ5Bs36VdwamEEvQS X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= This constant is only used in a single place and is has a very generic name polluting the global namespace. Move the constant closer to its only user. Signed-off-by: Thomas Wei=C3=9Fschuh --- include/linux/hrtimer_defs.h | 12 ------------ kernel/time/hrtimer.c | 8 ++++++++ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/include/linux/hrtimer_defs.h b/include/linux/hrtimer_defs.h index e0280d851455..02b010df6570 100644 --- a/include/linux/hrtimer_defs.h +++ b/include/linux/hrtimer_defs.h @@ -6,18 +6,6 @@ #include #include =20 -#ifdef CONFIG_HIGH_RES_TIMERS - -/* - * The resolution of the clocks. The resolution value is returned in - * the clock_getres() system call to give application programmers an - * idea of the (in)accuracy of timers. Timer values are rounded up to - * this resolution values. - */ -# define HIGH_RES_NSEC 1 - -#endif - #ifdef CONFIG_64BIT # define __hrtimer_clock_base_align ____cacheline_aligned #else diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index f8ea8c8fc895..2d319f8aff14 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -49,6 +49,14 @@ =20 #include "tick-internal.h" =20 +/* + * The resolution of the clocks. The resolution value is returned in + * the clock_getres() system call to give application programmers an + * idea of the (in)accuracy of timers. Timer values are rounded up to + * this resolution values. + */ +#define HIGH_RES_NSEC 1 + /* * Masks for selecting the soft and hard context timers from * cpu_base->active --=20 2.52.0