summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-12-12 19:28:44 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-14 13:31:09 +0000
commite64b8ac1e73c75d7b55f9f80c3fb7e2927bdbd0e (patch)
tree8ef44271ea124cee106a378ba293d91e36e6f2b4
parentd34364bdea12fd73ce5e83b44bc6fa347f3359d3 (diff)
cpu/intel/206ax: Fix generating C state entries
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 <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70665 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Christian Walter <christian.walter@9elements.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
-rw-r--r--src/cpu/intel/model_206ax/acpi.c2
1 files changed, 1 insertions, 1 deletions
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 };