Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hrtimer: Remove public definition of HIGH_RES_NSEC

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

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
84663a5a 0483e5e1

+8 -12
-12
include/linux/hrtimer_defs.h
··· 6 6 #include <linux/timerqueue.h> 7 7 #include <linux/seqlock.h> 8 8 9 - #ifdef CONFIG_HIGH_RES_TIMERS 10 - 11 - /* 12 - * The resolution of the clocks. The resolution value is returned in 13 - * the clock_getres() system call to give application programmers an 14 - * idea of the (in)accuracy of timers. Timer values are rounded up to 15 - * this resolution values. 16 - */ 17 - # define HIGH_RES_NSEC 1 18 - 19 - #endif 20 - 21 9 #ifdef CONFIG_64BIT 22 10 # define __hrtimer_clock_base_align ____cacheline_aligned 23 11 #else
+8
kernel/time/hrtimer.c
··· 50 50 #include "tick-internal.h" 51 51 52 52 /* 53 + * The resolution of the clocks. The resolution value is returned in 54 + * the clock_getres() system call to give application programmers an 55 + * idea of the (in)accuracy of timers. Timer values are rounded up to 56 + * this resolution values. 57 + */ 58 + #define HIGH_RES_NSEC 1 59 + 60 + /* 53 61 * Masks for selecting the soft and hard context timers from 54 62 * cpu_base->active 55 63 */