From: Daeyeong Lee Date: Wed, 1 Aug 2018 11:08:36 +0000 (+0900) Subject: [COMMON] sched: ems: Change calculate_energy function to an extern declaration X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=839ad964058abe32d6320c9045a06f6159101b09;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] sched: ems: Change calculate_energy function to an extern declaration Change-Id: I3004c525cac85ef5747205494ac639dda8852857 Signed-off-by: Daeyeong Lee --- diff --git a/kernel/sched/ems/ems.h b/kernel/sched/ems/ems.h index 29f50069eeaa..ffaf5cdac69c 100644 --- a/kernel/sched/ems/ems.h +++ b/kernel/sched/ems/ems.h @@ -23,6 +23,7 @@ extern int select_perf_cpu(struct task_struct *p); extern int global_boosting(struct task_struct *p); extern int global_boosted(void); extern int select_energy_cpu(struct task_struct *p, int prev_cpu, int sd_flag, int sync); +extern unsigned int calculate_energy(struct task_struct *p, int target_cpu); extern int band_play_cpu(struct task_struct *p); #ifdef CONFIG_SCHED_TUNE diff --git a/kernel/sched/ems/energy.c b/kernel/sched/ems/energy.c index e55fe5986e8c..7acd9adc210e 100644 --- a/kernel/sched/ems/energy.c +++ b/kernel/sched/ems/energy.c @@ -58,7 +58,7 @@ struct eco_env { int prev_cpu; }; -static unsigned int calculate_energy(struct task_struct *p, int target_cpu) +unsigned int calculate_energy(struct task_struct *p, int target_cpu) { unsigned long util[NR_CPUS] = {0, }; unsigned int total_energy = 0;