]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
hrtimer: Remove public definition of HIGH_RES_NSEC
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 7 Jan 2026 10:36:57 +0000 (11:36 +0100)
committerThomas Gleixner <tglx@kernel.org>
Tue, 13 Jan 2026 10:05:48 +0000 (11:05 +0100)
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ßschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260107-hrtimer-header-cleanup-v1-2-1a698ef0ddae@linutronix.de
include/linux/hrtimer_defs.h
kernel/time/hrtimer.c

index e0280d851455f5424b55bec7450161cfddd0d80f..02b010df65709314638e4ee8ad187174697e25c9 100644 (file)
@@ -6,18 +6,6 @@
 #include <linux/timerqueue.h>
 #include <linux/seqlock.h>
 
-#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
index f8ea8c8fc89529889ab3a4d0a9acaec872856c85..2d319f8aff1467403153e8878af0374f2e621366 100644 (file)
 
 #include "tick-internal.h"
 
+/*
+ * 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