From: Srivatsa S. Bhat Date: Thu, 12 Sep 2013 11:59:09 +0000 (+0530) Subject: cpufreq: Detect spurious invocations of update_policy_cpu() X-Git-Tag: v3.13-rc1~96^2~12^2~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99ec899eafe2ec0a7dd96e9de5fa0a2bea3032ba;p=pandora-kernel.git cpufreq: Detect spurious invocations of update_policy_cpu() The function update_policy_cpu() is expected to be called when the policy->cpu of a cpufreq policy is to be changed: ie., the new CPU nominated to become the policy->cpu is different from the old one. Print a warning if it is invoked with new_cpu == old_cpu, since such an invocation might hint at a faulty logic in the caller. Suggested-by: Viresh Kumar Signed-off-by: Srivatsa S. Bhat Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed