From: Park Bumgyu Date: Fri, 13 Apr 2018 02:30:57 +0000 (+0900) Subject: ems: clean up ems.h X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=61f32e792cb7ff718818cc0ac9d8b50bc0ce8126;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ems: clean up ems.h Change-Id: I70a89c242ada635932d85cbdb9533ef07bcb3526 Signed-off-by: Park Bumgyu --- diff --git a/include/linux/ems.h b/include/linux/ems.h index cd782583e886..27f45da8ca88 100644 --- a/include/linux/ems.h +++ b/include/linux/ems.h @@ -32,31 +32,41 @@ struct gb_qos_request { }; #ifdef CONFIG_SCHED_EMS +/* task util initialization */ extern void exynos_init_entity_util_avg(struct sched_entity *se); + +/* active balance */ extern int exynos_need_active_balance(enum cpu_idle_type idle, - struct sched_domain *sd, int src_cpu, int dst_cpu); + struct sched_domain *sd, int src_cpu, int dst_cpu); +/* wakeup balance */ extern int exynos_wakeup_balance(struct task_struct *p, int prev_cpu, int sd_flag, int sync); +/* ontime migration */ extern void ontime_migration(void); extern int ontime_can_migration(struct task_struct *p, int cpu); -extern void ontime_update_load_avg(u64 delta, int cpu, unsigned long weight, - struct sched_avg *sa); -extern void ontime_new_entity_load(struct task_struct *parent, - struct sched_entity *se); +extern void ontime_update_load_avg(u64 delta, int cpu, unsigned long weight, struct sched_avg *sa); +extern void ontime_new_entity_load(struct task_struct *parent, struct sched_entity *se); extern void ontime_trace_task_info(struct task_struct *p); +/* load balance trigger */ extern bool lbt_overutilized(int cpu, int level); extern void update_lbt_overutil(int cpu, unsigned long capacity); +/* global boost */ extern void gb_qos_update_request(struct gb_qos_request *req, u32 new_value); +/* prefer perf */ extern void request_kernel_prefer_perf(int grp_idx, int enable); #else static inline void exynos_init_entity_util_avg(struct sched_entity *se) { } + static inline int exynos_need_active_balance(enum cpu_idle_type idle, - struct sched_domain *sd, int src_cpu, int dst_cpu) { return 0; } + struct sched_domain *sd, int src_cpu, int dst_cpu) +{ + return 0; +} static inline int exynos_wakeup_balance(struct task_struct *p, int prev_cpu, int sd_flag, int sync) @@ -65,14 +75,18 @@ exynos_wakeup_balance(struct task_struct *p, int prev_cpu, int sd_flag, int sync } static inline void ontime_migration(void) { } -static inline int ontime_can_migration(struct task_struct *p, int cpu) { return 1; } -static inline void ontime_update_load_avg(u64 delta, int cpu, unsigned long weight, - struct sched_avg *sa) { } -static inline void ontime_new_entity_load(struct task_struct *p, - struct sched_entity *se) { } +static inline int ontime_can_migration(struct task_struct *p, int cpu) +{ + return 1; +} +static inline void ontime_update_load_avg(u64 delta, int cpu, unsigned long weight, struct sched_avg *sa) { } +static inline void ontime_new_entity_load(struct task_struct *p, struct sched_entity *se) { } static inline void ontime_trace_task_info(struct task_struct *p) { } -static inline bool lbt_overutilized(int cpu, int level) { return false; } +static inline bool lbt_overutilized(int cpu, int level) +{ + return false; +} static inline void update_lbt_overutil(int cpu, unsigned long capacity) { } static inline void gb_qos_update_request(struct gb_qos_request *req, u32 new_value) { }