summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/include
diff options
context:
space:
mode:
authorMarc Jones <marcjones@sysproconsulting.com>2020-12-18 10:44:47 -0700
committerHung-Te Lin <hungte@chromium.org>2020-12-21 02:32:44 +0000
commita81703c37b8f80311e2af9be65ed3154f5581887 (patch)
treec75cb2ed49c969f01a0264a43e963e807feb8123 /src/soc/intel/common/block/include
parent1aa8fc3cef564a7e4b6c0ee4173a62b7a5889932 (diff)
soc/intel/common/block/acpi: Make calculate_power() global
Change static calculate_power() function to global and update the name to common_calculate_power_ratio() for SOC ACPI code use. Change-Id: I0e2d118ad52b36859bfc6029b7dee946193841f4 Signed-off-by: Marc Jones <marcjones@sysproconsulting.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48739 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Jay Talbott <JayTalbott@sysproconsulting.com>
Diffstat (limited to 'src/soc/intel/common/block/include')
-rw-r--r--src/soc/intel/common/block/include/intelblocks/acpi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/include/intelblocks/acpi.h b/src/soc/intel/common/block/include/intelblocks/acpi.h
index d058a5db6b..cd3a309c21 100644
--- a/src/soc/intel/common/block/include/intelblocks/acpi.h
+++ b/src/soc/intel/common/block/include/intelblocks/acpi.h
@@ -63,4 +63,9 @@ void generate_t_state_entries(int core, int cores_per_package);
*/
void soc_power_states_generation(int core_id, int cores_per_package);
+/*
+ * Common function to calculate the power ratio for power state generation
+ */
+int common_calculate_power_ratio(int tdp, int p1_ratio, int ratio);
+
#endif /* _SOC_INTEL_COMMON_BLOCK_ACPI_H_ */