diff options
Diffstat (limited to 'drivers/cpufreq/pcc-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/pcc-cpufreq.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/cpufreq/pcc-cpufreq.c b/drivers/cpufreq/pcc-cpufreq.c index d81c4e5ea0ad..ef663474a643 100644 --- a/drivers/cpufreq/pcc-cpufreq.c +++ b/drivers/cpufreq/pcc-cpufreq.c | |||
@@ -111,8 +111,7 @@ static struct pcc_cpu __percpu *pcc_cpu_info; | |||
111 | 111 | ||
112 | static int pcc_cpufreq_verify(struct cpufreq_policy *policy) | 112 | static int pcc_cpufreq_verify(struct cpufreq_policy *policy) |
113 | { | 113 | { |
114 | cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, | 114 | cpufreq_verify_within_cpu_limits(policy); |
115 | policy->cpuinfo.max_freq); | ||
116 | return 0; | 115 | return 0; |
117 | } | 116 | } |
118 | 117 | ||
@@ -560,13 +559,6 @@ static int pcc_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
560 | ioread32(&pcch_hdr->nominal) * 1000; | 559 | ioread32(&pcch_hdr->nominal) * 1000; |
561 | policy->min = policy->cpuinfo.min_freq = | 560 | policy->min = policy->cpuinfo.min_freq = |
562 | ioread32(&pcch_hdr->minimum_frequency) * 1000; | 561 | ioread32(&pcch_hdr->minimum_frequency) * 1000; |
563 | policy->cur = pcc_get_freq(cpu); | ||
564 | |||
565 | if (!policy->cur) { | ||
566 | pr_debug("init: Unable to get current CPU frequency\n"); | ||
567 | result = -EINVAL; | ||
568 | goto out; | ||
569 | } | ||
570 | 562 | ||
571 | pr_debug("init: policy->max is %d, policy->min is %d\n", | 563 | pr_debug("init: policy->max is %d, policy->min is %d\n", |
572 | policy->max, policy->min); | 564 | policy->max, policy->min); |