]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
powerpc/pseries: Don't print failure message in energy driver
authorNicholas Piggin <npiggin@gmail.com>
Fri, 21 Jul 2017 01:16:44 +0000 (11:16 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 12:30:29 +0000 (22:30 +1000)
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: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/pseries_energy.c

index 164a13d3998acbeaababb3d6316671a29cf75d09..35c891aabef0e0347cd5b231c73d991786f920e9 100644 (file)
@@ -229,10 +229,9 @@ static int __init pseries_energy_init(void)
        int cpu, err;
        struct device *cpu_dev;
 
-       if (!firmware_has_feature(FW_FEATURE_BEST_ENERGY)) {
-               printk(KERN_INFO "Hypercall H_BEST_ENERGY not supported\n");
-               return 0;
-       }
+       if (!firmware_has_feature(FW_FEATURE_BEST_ENERGY))
+               return 0; /* H_BEST_ENERGY hcall not supported */
+
        /* Create the sysfs files */
        err = device_create_file(cpu_subsys.dev_root,
                                &attr_cpu_activate_hint_list);