提交 a70a0b9f 编写于 作者: N Nicholas Piggin 提交者: Michael Ellerman

powerpc/pseries: Don't print failure message in energy driver

This driver currently reports the H_BEST_ENERGY hypervisor call is
unsupported (even when booting in a non-virtualised environment). This
is not something the administrator can do much with, and not
significant for debugging.

Remove it.
Signed-off-by: NNicholas Piggin <npiggin@gmail.com>
Reviewed-by: NVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 e27f71e5
...@@ -229,10 +229,9 @@ static int __init pseries_energy_init(void) ...@@ -229,10 +229,9 @@ static int __init pseries_energy_init(void)
int cpu, err; int cpu, err;
struct device *cpu_dev; struct device *cpu_dev;
if (!firmware_has_feature(FW_FEATURE_BEST_ENERGY)) { if (!firmware_has_feature(FW_FEATURE_BEST_ENERGY))
printk(KERN_INFO "Hypercall H_BEST_ENERGY not supported\n"); return 0; /* H_BEST_ENERGY hcall not supported */
return 0;
}
/* Create the sysfs files */ /* Create the sysfs files */
err = device_create_file(cpu_subsys.dev_root, err = device_create_file(cpu_subsys.dev_root,
&attr_cpu_activate_hint_list); &attr_cpu_activate_hint_list);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册