Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201299
b: refs/heads/master
c: 179ee43
h: refs/heads/master
i:
  201297: 7d5d774
  201295: 8d6a800
v: v3
  • Loading branch information
Matthew Garrett authored and Dave Jones committed Jul 26, 2010
1 parent f0b42cb commit 0c1f99e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3847d223f2e4da5ceb47ea8996618010192f3197
refs/heads/master: 179ee43465343d1f8f2a4af25ead4ae15e43fa6e
17 changes: 9 additions & 8 deletions trunk/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,13 +541,13 @@ static int pcc_cpufreq_cpu_init(struct cpufreq_policy *policy)

if (!pcch_virt_addr) {
result = -1;
goto pcch_null;
goto out;
}

result = pcc_get_offset(cpu);
if (result) {
dprintk("init: PCCP evaluation failed\n");
goto free;
goto out;
}

policy->max = policy->cpuinfo.max_freq =
Expand All @@ -556,14 +556,15 @@ static int pcc_cpufreq_cpu_init(struct cpufreq_policy *policy)
ioread32(&pcch_hdr->minimum_frequency) * 1000;
policy->cur = pcc_get_freq(cpu);

if (!policy->cur) {
dprintk("init: Unable to get current CPU frequency\n");
result = -EINVAL;
goto out;
}

dprintk("init: policy->max is %d, policy->min is %d\n",
policy->max, policy->min);

return 0;
free:
pcc_clear_mapping();
free_percpu(pcc_cpu_info);
pcch_null:
out:
return result;
}

Expand Down

0 comments on commit 0c1f99e

Please sign in to comment.