|
@@ -166,7 +166,7 @@ static int __init parse_cpu_capacity(struct device_node *cpu_node, int cpu)
|
|
if (!raw_capacity) {
|
|
if (!raw_capacity) {
|
|
pr_err("cpu_capacity: failed to allocate memory for raw capacities\n");
|
|
pr_err("cpu_capacity: failed to allocate memory for raw capacities\n");
|
|
cap_parsing_failed = true;
|
|
cap_parsing_failed = true;
|
|
- return !ret;
|
|
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
capacity_scale = max(cpu_capacity, capacity_scale);
|
|
capacity_scale = max(cpu_capacity, capacity_scale);
|