mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
soc: rockchip: rockchip_performance: correct cpub_mask for rk3588
The max frequency of A76 is 2.2GHz to 2.4GHz for rk3588, so make sure all A76 is added to cpub_mask if the frequency is less than 2.4G. Change-Id: I7d2e4a607acb127aafe385acc2840bdc6489d961 Signed-off-by: Liang Chen <cl@rock-chips.com>
This commit is contained in:
parent
a2b1191434
commit
41297ecf6e
|
|
@ -98,6 +98,7 @@ module_param_cb(level, &level_param_ops, &perf_level, 0644);
|
|||
static __init int rockchip_perf_init(void)
|
||||
{
|
||||
int cpu;
|
||||
int cpub_min_cap = SCHED_CAPACITY_SCALE - (SCHED_CAPACITY_SCALE >> 3);
|
||||
|
||||
if (!zalloc_cpumask_var(&cpul_mask, GFP_KERNEL))
|
||||
return -ENOMEM;
|
||||
|
|
@ -105,7 +106,7 @@ static __init int rockchip_perf_init(void)
|
|||
return -ENOMEM;
|
||||
|
||||
for_each_possible_cpu(cpu) {
|
||||
if (arch_scale_cpu_capacity(cpu) == SCHED_CAPACITY_SCALE)
|
||||
if (arch_scale_cpu_capacity(cpu) > cpub_min_cap)
|
||||
cpumask_set_cpu(cpu, cpub_mask);
|
||||
else
|
||||
cpumask_set_cpu(cpu, cpul_mask);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user