Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ed8fd08 authored by Junjie Wu's avatar Junjie Wu Committed by Jonathan Avila
Browse files

cpufreq: Improve governor related CPUFreq error messages



Governor error messages point to important failures in governor or
framework. Output triggering CPU and policy->cpu to help debugging.

Change-Id: I4c5c392ec973b764ec3240bb2eb455c624bcaf63
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
[sboyd@codeaurora.org: Dropped most hunks as they didn't apply
anymore between 4.4 and 4.9]
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarRohit Gupta <rohgup@codeaurora.org>
parent 57089bf7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1062,7 +1062,8 @@ static int cpufreq_add_policy_cpu(struct cpufreq_policy *policy, unsigned int cp
	if (has_target()) {
		ret = cpufreq_start_governor(policy);
		if (ret)
			pr_err("%s: Failed to start governor\n", __func__);
			pr_err("%s: Failed to start governor for CPU%u, policy CPU%u\n",
			       __func__, cpu, policy->cpu);
	}
	up_write(&policy->rwsem);
	return ret;