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
return -ENODEV;
}
-#warning pol->policy is in undefined state here
- res = find_match(&targ, &min, &max,
- pol->policy == CPUFREQ_POLICY_POWERSAVE ?
- SEARCH_DOWN : SEARCH_UP, 0, 0);
+ res = find_match(&targ, &min, &max, SEARCH_DOWN, 0, 0);
if (!res) {
pol->min = min * 1000;
pol->max = max * 1000;