提交 e19717fe 编写于 作者: D Dave Jones

[CPUFREQ] Add missing printk levels to e_powersaver

Signed-off-by: NDave Jones <davej@redhat.com>
上级 89c04849
...@@ -165,7 +165,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy) ...@@ -165,7 +165,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
return -ENODEV; return -ENODEV;
/* Check brand */ /* Check brand */
printk("eps: Detected VIA "); printk(KERN_INFO "eps: Detected VIA ");
switch (c->x86_model) { switch (c->x86_model) {
case 10: case 10:
...@@ -182,19 +182,19 @@ static int eps_cpu_init(struct cpufreq_policy *policy) ...@@ -182,19 +182,19 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
switch(brand) { switch(brand) {
case EPS_BRAND_C7M: case EPS_BRAND_C7M:
printk("C7-M\n"); printk(KERN_CONT "C7-M\n");
break; break;
case EPS_BRAND_C7: case EPS_BRAND_C7:
printk("C7\n"); printk(KERN_CONT "C7\n");
break; break;
case EPS_BRAND_EDEN: case EPS_BRAND_EDEN:
printk("Eden\n"); printk(KERN_CONT "Eden\n");
break; break;
case EPS_BRAND_C7D: case EPS_BRAND_C7D:
printk(KERN_CONT "C7-D\n"); printk(KERN_CONT "C7-D\n");
break; break;
case EPS_BRAND_C3: case EPS_BRAND_C3:
printk("C3\n"); printk(KERN_CONT "C3\n");
return -ENODEV; return -ENODEV;
break; break;
} }
...@@ -206,7 +206,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy) ...@@ -206,7 +206,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
/* Can be locked at 0 */ /* Can be locked at 0 */
rdmsrl(MSR_IA32_MISC_ENABLE, val); rdmsrl(MSR_IA32_MISC_ENABLE, val);
if (!(val & 1 << 16)) { if (!(val & 1 << 16)) {
printk("eps: Can't enable Enhanced PowerSaver\n"); printk(KERN_INFO "eps: Can't enable Enhanced PowerSaver\n");
return -ENODEV; return -ENODEV;
} }
} }
...@@ -214,19 +214,19 @@ static int eps_cpu_init(struct cpufreq_policy *policy) ...@@ -214,19 +214,19 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
/* Print voltage and multiplier */ /* Print voltage and multiplier */
rdmsr(MSR_IA32_PERF_STATUS, lo, hi); rdmsr(MSR_IA32_PERF_STATUS, lo, hi);
current_voltage = lo & 0xff; current_voltage = lo & 0xff;
printk("eps: Current voltage = %dmV\n", current_voltage * 16 + 700); printk(KERN_INFO "eps: Current voltage = %dmV\n", current_voltage * 16 + 700);
current_multiplier = (lo >> 8) & 0xff; current_multiplier = (lo >> 8) & 0xff;
printk("eps: Current multiplier = %d\n", current_multiplier); printk(KERN_INFO "eps: Current multiplier = %d\n", current_multiplier);
/* Print limits */ /* Print limits */
max_voltage = hi & 0xff; max_voltage = hi & 0xff;
printk("eps: Highest voltage = %dmV\n", max_voltage * 16 + 700); printk(KERN_INFO "eps: Highest voltage = %dmV\n", max_voltage * 16 + 700);
max_multiplier = (hi >> 8) & 0xff; max_multiplier = (hi >> 8) & 0xff;
printk("eps: Highest multiplier = %d\n", max_multiplier); printk(KERN_INFO "eps: Highest multiplier = %d\n", max_multiplier);
min_voltage = (hi >> 16) & 0xff; min_voltage = (hi >> 16) & 0xff;
printk("eps: Lowest voltage = %dmV\n", min_voltage * 16 + 700); printk(KERN_INFO "eps: Lowest voltage = %dmV\n", min_voltage * 16 + 700);
min_multiplier = (hi >> 24) & 0xff; min_multiplier = (hi >> 24) & 0xff;
printk("eps: Lowest multiplier = %d\n", min_multiplier); printk(KERN_INFO "eps: Lowest multiplier = %d\n", min_multiplier);
/* Sanity checks */ /* Sanity checks */
if (current_multiplier == 0 || max_multiplier == 0 if (current_multiplier == 0 || max_multiplier == 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册