Skip to contentSkip to conversation

sched: remove hrtick_enabled() when !CONFIG_SCHED_HRTICK

PATCH New Miaohe Lin 1 participant 1 message Jun 17, 2023 Scheduler

lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 sched: remove hrtick_enabled() when !CONFIG_SCHED_HRTICK

When CONFIG_SCHED_HRTICK is not enabled, hrtick_enabled() is never used. So remove it.

---
 kernel/sched/sched.h | 5 -----
 1 file changed, 5 deletions(-)
kernel/sched/sched.h +0 -5
index f510a14c7a1d..6948d95337fb 100644
@@ -2530,11 +2530,6 @@ static inline int hrtick_enabled_dl(struct rq *rq)
 	return 0;
 }
 
-static inline int hrtick_enabled(struct rq *rq)
-{
-	return 0;
-}
-
 #endif /* CONFIG_SCHED_HRTICK */
 
 #ifndef arch_scale_freq_tick
Signature · 1 line
2.27.0