]> git.hungrycats.org Git - linux/commitdiff
[CPUFREQ] Fix powernow-k8 policy usage.
authorDave Jones <davej@redhat.com>
Mon, 10 Nov 2003 16:26:27 +0000 (16:26 +0000)
committerDave Jones <davej@redhat.com>
Mon, 10 Nov 2003 16:26:27 +0000 (16:26 +0000)
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

arch/i386/kernel/cpu/cpufreq/powernow-k8.c

index ef8393cfa54ec0f4feb1a90ae3a39701ac6f9bef..b7e0945365a0f9fff469441691173f2239ad655c 100644 (file)
@@ -935,10 +935,7 @@ powernowk8_verify(struct cpufreq_policy *pol)
                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;