sched/walt: improve the scheduler
This change is for general scheduler improvement.
Change-Id: Ie162a57537bb9ada66a4254d606e17d54b7a3a49
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
[pkondeti@codeaurora.org: code refactoring and implemented freq to load
calculations.]
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index b99793a..ee319b1 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -86,6 +86,7 @@
int notifier_sent;
bool wake_up_idle;
u64 aggr_grp_load;
+ u64 coloc_boost_load;
};
extern unsigned int sched_disable_window_stats;
@@ -2718,6 +2719,13 @@
return boost_on_big;
}
+extern void walt_map_freq_to_load(void);
+
+static inline bool is_min_capacity_cluster(struct sched_cluster *cluster)
+{
+ return is_min_capacity_cpu(cluster_first_cpu(cluster));
+}
+
#else /* CONFIG_SCHED_WALT */
struct walt_sched_stats;
@@ -2855,6 +2863,7 @@
static inline void walt_sched_energy_populated_callback(void) { }
static inline void walt_update_min_max_capacity(void) { }
+static inline void walt_map_freq_to_load(void) { }
#endif /* CONFIG_SCHED_WALT */
static inline bool energy_aware(void)