Change-Id: Iaef589d777ce55ab21f642f4f9333d753309069e
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
extern int cpu_util_wake(int cpu, struct task_struct *p);
extern unsigned long task_util_est(struct task_struct *p);
extern unsigned int get_cpu_mips(unsigned int cpu);
+extern unsigned int get_cpu_max_capacity(unsigned int cpu);
extern unsigned long boosted_task_util(struct task_struct *p);
return per_cpu(energy_table, cpu).mips;
}
+unsigned int get_cpu_max_capacity(unsigned int cpu)
+{
+ struct energy_table *table = &per_cpu(energy_table, cpu);
+
+ return table->states[table->nr_states - 1].cap;
+}
+
/*
* When choosing cpu considering energy efficiency, decide best cpu and
* backup cpu according to policy, and then choose cpu which consumes the