[COMMON] sched: ems: Change calculate_energy function to an extern declaration
authorDaeyeong Lee <daeyeong.lee@samsung.com>
Wed, 1 Aug 2018 11:08:36 +0000 (20:08 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:57 +0000 (20:24 +0300)
Change-Id: I3004c525cac85ef5747205494ac639dda8852857
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
kernel/sched/ems/ems.h
kernel/sched/ems/energy.c

index 29f50069eeaaea00827f7e440aab1acad832a5bb..ffaf5cdac69c9f403c14ff8997a3f7155d5c5b31 100644 (file)
@@ -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
index e55fe5986e8c5c972d143aabfc4cdfca8e623044..7acd9adc210e77893222695eebeefc8c91d53864 100644 (file)
@@ -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;