From 63e2a84d598276608f2cd48dc87824c959a328f5 Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Wed, 2 Dec 2020 11:33:02 -0700 Subject: soc/intel/xeon_sp: Use common block ACPI Use the common block ACPI to further reduce the duplicate code. Change-Id: If28d75cbb2a88363d70e3ae6a2cace46cb6bbbab Signed-off-by: Marc Jones Reviewed-on: https://review.coreboot.org/c/coreboot/+/48248 Reviewed-by: Jay Talbott Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/soc/intel/xeon_sp/cpx/soc_acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soc/intel/xeon_sp/cpx/soc_acpi.c') diff --git a/src/soc/intel/xeon_sp/cpx/soc_acpi.c b/src/soc/intel/xeon_sp/cpx/soc_acpi.c index 8e73008b75..d6eff5f4c4 100644 --- a/src/soc/intel/xeon_sp/cpx/soc_acpi.c +++ b/src/soc/intel/xeon_sp/cpx/soc_acpi.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -218,7 +219,7 @@ void soc_power_states_generation(int core, int cores_per_package) ratio >= ratio_min; ratio -= ratio_step) { /* Calculate power at this ratio */ - power = calculate_power(power_max, ratio_max, ratio); + power = common_calculate_power_ratio(power_max, ratio_max, ratio); clock = ratio * CONFIG_CPU_BCLK_MHZ; //clock = 1; acpigen_write_PSS_package( -- cgit v1.2.3