diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-09-21 06:51:27 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-21 06:51:42 -0400 |
commit | ae82bfd61ca7e57cc2d914add9ab0873e260f2f5 (patch) | |
tree | a7f862ad8b0ae4f2e8953e6aa613eb702b484ecf /arch/sh/kernel/cpufreq.c | |
parent | cd74c86bdf705f824d494a2bbda393d1d562b40a (diff) | |
parent | ebc79c4f8da0f92efa968e0328f32334a2ce80cf (diff) |
Merge branch 'linus' into perfcounters/rename
Merge reason: pull in all the latest code before doing the rename.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/sh/kernel/cpufreq.c')
-rw-r--r-- | arch/sh/kernel/cpufreq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/sh/kernel/cpufreq.c b/arch/sh/kernel/cpufreq.c index e0590ffebd73..dce4f3ff0932 100644 --- a/arch/sh/kernel/cpufreq.c +++ b/arch/sh/kernel/cpufreq.c | |||
@@ -82,7 +82,8 @@ static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
82 | 82 | ||
83 | cpuclk = clk_get(NULL, "cpu_clk"); | 83 | cpuclk = clk_get(NULL, "cpu_clk"); |
84 | if (IS_ERR(cpuclk)) { | 84 | if (IS_ERR(cpuclk)) { |
85 | printk(KERN_ERR "cpufreq: couldn't get CPU clk\n"); | 85 | printk(KERN_ERR "cpufreq: couldn't get CPU#%d clk\n", |
86 | policy->cpu); | ||
86 | return PTR_ERR(cpuclk); | 87 | return PTR_ERR(cpuclk); |
87 | } | 88 | } |
88 | 89 | ||
@@ -95,22 +96,21 @@ static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
95 | policy->min = policy->cpuinfo.min_freq; | 96 | policy->min = policy->cpuinfo.min_freq; |
96 | policy->max = policy->cpuinfo.max_freq; | 97 | policy->max = policy->cpuinfo.max_freq; |
97 | 98 | ||
98 | |||
99 | /* | 99 | /* |
100 | * Catch the cases where the clock framework hasn't been wired up | 100 | * Catch the cases where the clock framework hasn't been wired up |
101 | * properly to support scaling. | 101 | * properly to support scaling. |
102 | */ | 102 | */ |
103 | if (unlikely(policy->min == policy->max)) { | 103 | if (unlikely(policy->min == policy->max)) { |
104 | printk(KERN_ERR "cpufreq: clock framework rate rounding " | 104 | printk(KERN_ERR "cpufreq: clock framework rate rounding " |
105 | "not supported on this CPU.\n"); | 105 | "not supported on CPU#%d.\n", policy->cpu); |
106 | 106 | ||
107 | clk_put(cpuclk); | 107 | clk_put(cpuclk); |
108 | return -EINVAL; | 108 | return -EINVAL; |
109 | } | 109 | } |
110 | 110 | ||
111 | printk(KERN_INFO "cpufreq: Frequencies - Minimum %u.%03u MHz, " | 111 | printk(KERN_INFO "cpufreq: CPU#%d Frequencies - Minimum %u.%03u MHz, " |
112 | "Maximum %u.%03u MHz.\n", | 112 | "Maximum %u.%03u MHz.\n", |
113 | policy->min / 1000, policy->min % 1000, | 113 | policy->cpu, policy->min / 1000, policy->min % 1000, |
114 | policy->max / 1000, policy->max % 1000); | 114 | policy->max / 1000, policy->max % 1000); |
115 | 115 | ||
116 | return 0; | 116 | return 0; |