diff options
author | Marc Jones <marcjones@sysproconsulting.com> | 2020-12-02 11:33:02 -0700 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2020-12-22 02:59:18 +0000 |
commit | 63e2a84d598276608f2cd48dc87824c959a328f5 (patch) | |
tree | 3e0cd7bc6de1453f0db84b27bbab76057695424e /src/soc/intel/xeon_sp/cpx | |
parent | f65945fe8c2ae3d225d23aa27f8784d1d37027ac (diff) | |
download | coreboot-63e2a84d598276608f2cd48dc87824c959a328f5.tar.xz |
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 <marcjones@sysproconsulting.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48248
Reviewed-by: Jay Talbott <JayTalbott@sysproconsulting.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/xeon_sp/cpx')
-rw-r--r-- | src/soc/intel/xeon_sp/cpx/soc_acpi.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <cpu/intel/turbo.h> #include <device/mmio.h> #include <device/pci.h> +#include <intelblocks/acpi.h> #include <intelblocks/cpulib.h> #include <soc/acpi.h> #include <soc/cpu.h> @@ -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( |