Skip to content

Commit ba6ea77

Browse files
Liao Changvireshk
authored andcommitted
cpufreq: Prefer to print cpuid in MIN/MAX QoS register error message
When a cpufreq_policy is allocated, the cpus, related_cpus and real_cpus of policy are still unset. Therefore, it is preferable to print the passed 'cpu' parameter instead of a empty 'cpus' cpumask in error message when registering MIN/MAX QoS notifier fails. Signed-off-by: Liao Chang <liaochang1@huawei.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent d3dec5b commit ba6ea77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/cpufreq/cpufreq.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,16 +1234,16 @@ static struct cpufreq_policy *cpufreq_policy_alloc(unsigned int cpu)
12341234
ret = freq_qos_add_notifier(&policy->constraints, FREQ_QOS_MIN,
12351235
&policy->nb_min);
12361236
if (ret) {
1237-
dev_err(dev, "Failed to register MIN QoS notifier: %d (%*pbl)\n",
1238-
ret, cpumask_pr_args(policy->cpus));
1237+
dev_err(dev, "Failed to register MIN QoS notifier: %d (CPU%u)\n",
1238+
ret, cpu);
12391239
goto err_kobj_remove;
12401240
}
12411241

12421242
ret = freq_qos_add_notifier(&policy->constraints, FREQ_QOS_MAX,
12431243
&policy->nb_max);
12441244
if (ret) {
1245-
dev_err(dev, "Failed to register MAX QoS notifier: %d (%*pbl)\n",
1246-
ret, cpumask_pr_args(policy->cpus));
1245+
dev_err(dev, "Failed to register MAX QoS notifier: %d (CPU%u)\n",
1246+
ret, cpu);
12471247
goto err_min_qos_notifier;
12481248
}
12491249

0 commit comments

Comments
 (0)