summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@kernel.org>2026-02-24 17:35:47 +0100
committerPeter Zijlstra <peterz@infradead.org>2026-02-27 16:40:05 +0100
commitc3a92213eb3dd8ea6f664d16a08eda800e34eaad (patch)
tree8c7683d356ca6e8ff7f7d654d382f49478041529 /include
parent0a93d30861617ecf207dcc4c6c736435fac36dae (diff)
downloadlinux-c3a92213eb3dd8ea6f664d16a08eda800e34eaad.tar.gz
linux-c3a92213eb3dd8ea6f664d16a08eda800e34eaad.zip
sched: Use hrtimer_highres_enabled()
Use the static branch based variant and thereby avoid following three pointers. Signed-off-by: Thomas Gleixner <tglx@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20260224163429.203610956@kernel.org
Diffstat (limited to 'include')
-rw-r--r--include/linux/hrtimer.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h
index c9ca105ba009..b5003856fd60 100644
--- a/include/linux/hrtimer.h
+++ b/include/linux/hrtimer.h
@@ -146,12 +146,6 @@ static inline ktime_t hrtimer_expires_remaining(const struct hrtimer *timer)
return ktime_sub(timer->node.expires, hrtimer_cb_get_time(timer));
}
-static inline int hrtimer_is_hres_active(struct hrtimer *timer)
-{
- return IS_ENABLED(CONFIG_HIGH_RES_TIMERS) ?
- timer->base->cpu_base->hres_active : 0;
-}
-
#ifdef CONFIG_HIGH_RES_TIMERS
extern unsigned int hrtimer_resolution;
struct clock_event_device;