Commit 912aea6b authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Fix powernow-k8 policy usage.

As the powernow-k8 driver uses the ->target and not the
->setpolicy callback, cpufreq_policy->policy is always zero. Checking for it
in the powernow-k8 driver always returned "false". So we can easily remove
this invalid check (and the #warning added to denote this).

From Dominik Brodowski
parent b053c070
...@@ -935,10 +935,7 @@ powernowk8_verify(struct cpufreq_policy *pol) ...@@ -935,10 +935,7 @@ powernowk8_verify(struct cpufreq_policy *pol)
return -ENODEV; return -ENODEV;
} }
#warning pol->policy is in undefined state here res = find_match(&targ, &min, &max, SEARCH_DOWN, 0, 0);
res = find_match(&targ, &min, &max,
pol->policy == CPUFREQ_POLICY_POWERSAVE ?
SEARCH_DOWN : SEARCH_UP, 0, 0);
if (!res) { if (!res) {
pol->min = min * 1000; pol->min = min * 1000;
pol->max = max * 1000; pol->max = max * 1000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment