- The value of capacity_orig_of can be changed at runtime.
Ontime feature need to use stable value that indicating performance of cpu.
So use get_cpu_mips instead of capacity_orig_of.
Change-Id: If249f6841cc26abce573459d8199004beccdeac8
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
* don't need to ontime migration.
*/
ontime_select_fit_cpus(p, &fit_cpus);
- if (capacity_orig_of(cpu) >=
- capacity_orig_of(cpumask_first(&fit_cpus))) {
+ if (get_cpu_mips(cpu) >= get_cpu_mips(cpumask_first(&fit_cpus))) {
raw_spin_unlock_irqrestore(&rq->lock, flags);
continue;
}
return true;
}
- if (capacity_orig_of(dst_cpu) > capacity_orig_of(src_cpu)) {
+ if (get_cpu_mips(dst_cpu) > get_cpu_mips(src_cpu)) {
trace_ems_ontime_check_migrate(p, dst_cpu, true, "go to bigger");
return true;
}