powerpc/pseries: Cleanup best_energy_hcall detection
authorMichael Neuling <mikey@neuling.org>
Tue, 6 Nov 2012 14:49:16 +0000 (14:49 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 10 Jan 2013 04:08:37 +0000 (15:08 +1100)
commit0388c79c99ccb43f711af57d2e14fcd6a5f45a06
tree1af306fe297ec0f6b02907222dfa3afe8a311779
parent2f1d4ea7bcd96d3796eba4087388bdb37322ee7a
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>
arch/powerpc/include/asm/firmware.h
arch/powerpc/platforms/pseries/firmware.c
arch/powerpc/platforms/pseries/pseries_energy.c