sched: remove hrtick_enabled() when !CONFIG_SCHED_HRTICK

Message ID 20230617075252.1943542-1-linmiaohe@huawei.com
State New
Headers
Series sched: remove hrtick_enabled() when !CONFIG_SCHED_HRTICK |

Commit Message

Miaohe Lin June 17, 2023, 7:52 a.m. UTC
  When CONFIG_SCHED_HRTICK is not enabled, hrtick_enabled() is never used.
So remove it.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 kernel/sched/sched.h | 5 -----
 1 file changed, 5 deletions(-)
  

Patch

diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index f510a14c7a1d..6948d95337fb 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -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