diff options
author | Michael Neuling <mikey@neuling.org> | 2012-11-06 14:49:16 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-01-10 15:08:37 +1100 |
commit | 0388c79c99ccb43f711af57d2e14fcd6a5f45a06 (patch) | |
tree | 1af306fe297ec0f6b02907222dfa3afe8a311779 /arch/powerpc/platforms/pseries/firmware.c | |
parent | 2f1d4ea7bcd96d3796eba4087388bdb37322ee7a (diff) | |
download | lwn-0388c79c99ccb43f711af57d2e14fcd6a5f45a06.tar.gz lwn-0388c79c99ccb43f711af57d2e14fcd6a5f45a06.zip |
powerpc/pseries: Cleanup best_energy_hcall detection
Currently we search for the best_energy hcall using a custom function. Move
this to using the firmware_feature_table.
Signed-off-by: Michael Neuling <mikey@neuling.org>
cc: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
cc: Linux PPC dev <linuxppc-dev@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/firmware.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/firmware.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/firmware.c b/arch/powerpc/platforms/pseries/firmware.c index 55b98c3dc47a..aa3693f7fb27 100644 --- a/arch/powerpc/platforms/pseries/firmware.c +++ b/arch/powerpc/platforms/pseries/firmware.c @@ -62,6 +62,7 @@ firmware_features_table[FIRMWARE_MAX_FEATURES] = { {FW_FEATURE_SPLPAR, "hcall-splpar"}, {FW_FEATURE_VPHN, "hcall-vphn"}, {FW_FEATURE_SET_MODE, "hcall-set-mode"}, + {FW_FEATURE_BEST_ENERGY, "hcall-best-energy-1*"}, }; /* Build up the firmware features bitmask using the contents of |