From e64b8ac1e73c75d7b55f9f80c3fb7e2927bdbd0e Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 12 Dec 2022 19:28:44 +0100 Subject: [PATCH] cpu/intel/206ax: Fix generating C state entries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The struct device passed to this function is the cpu cluster and not individual lapic. This fixes a regression introduced by cdb26fd (cpu/intel/model_206ax: Remove fake lapic device) Change-Id: I586e13a723303b8d639d526a175bd6828465a607 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/70665 Tested-by: build bot (Jenkins) Reviewed-by: Christian Walter Reviewed-by: Angel Pons Reviewed-by: Kyösti Mälkki --- src/cpu/intel/model_206ax/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/intel/model_206ax/acpi.c b/src/cpu/intel/model_206ax/acpi.c index d2d6467455..a305c01e6f 100644 --- a/src/cpu/intel/model_206ax/acpi.c +++ b/src/cpu/intel/model_206ax/acpi.c @@ -97,7 +97,7 @@ static int get_logical_cores_per_package(void) static void generate_C_state_entries(const struct device *dev) { - struct cpu_intel_model_206ax_config *conf = dev->bus->dev->chip_info; + struct cpu_intel_model_206ax_config *conf = dev->chip_info; const int acpi_cstates[3] = { conf->acpi_c1, conf->acpi_c2, conf->acpi_c3 };