From a733dc8baaac117235bea00bbfa6c42297864dc0 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Tue, 21 Jul 2020 09:50:38 -0700 Subject: [PATCH] sched/walt: Improve the scheduler This change is for general scheduler improvements. Change-Id: Id48c9ddaee0c9f5dcadc2975346b33d72f4fc8ba Signed-off-by: Amir Vajid --- include/linux/sched.h | 15 --------------- kernel/sched/walt.c | 2 -- 2 files changed, 17 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index c75d83815341..6e3c2d5bcdd3 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -118,18 +118,6 @@ struct task_group; (task->flags & PF_FROZEN) == 0 && \ (task->state & TASK_NOLOAD) == 0) -/* - * Enum for display driver to provide varying refresh rates - */ -enum fps { - FPS0 = 0, - FPS30 = 30, - FPS48 = 48, - FPS60 = 60, - FPS90 = 90, - FPS120 = 120, -}; - enum task_boost_type { TASK_BOOST_NONE = 0, TASK_BOOST_ON_MID, @@ -562,7 +550,6 @@ register_cpu_cycle_counter_cb(struct cpu_cycle_counter_cb *cb); extern void sched_update_cpu_freq_min_max(const cpumask_t *cpus, u32 fmin, u32 fmax); extern void free_task_load_ptrs(struct task_struct *p); -extern void sched_set_refresh_rate(enum fps fps); extern int set_task_boost(int boost, u64 period); extern void walt_update_cluster_topology(void); @@ -646,8 +633,6 @@ static inline void free_task_load_ptrs(struct task_struct *p) { } static inline void sched_update_cpu_freq_min_max(const cpumask_t *cpus, u32 fmin, u32 fmax) { } -static inline void sched_set_refresh_rate(enum fps fps) { } - static inline void set_task_boost(int boost, u64 period) { } static inline void walt_update_cluster_topology(void) { } #endif /* CONFIG_SCHED_WALT */ diff --git a/kernel/sched/walt.c b/kernel/sched/walt.c index 7fd2cdc5027f..1721a470c2f1 100644 --- a/kernel/sched/walt.c +++ b/kernel/sched/walt.c @@ -71,8 +71,6 @@ void __weak sched_update_cpu_freq_min_max(const cpumask_t *cpus, u32 fmin, void __weak free_task_load_ptrs(struct task_struct *p) { } -void __weak sched_set_refresh_rate(enum fps fps) { } - int __weak core_ctl_set_boost(bool boost) { return 0; } void __weak core_ctl_notifier_register(struct notifier_block *n) { }