From c56350860f452628a0e307d279086a66d6d0961a Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 30 Mar 2021 02:04:02 +0200 Subject: soc/amd/picasso/acpi: fix domain argument of acpigen_write_CSD_package Signed-off-by: Felix Held Change-Id: I50e88ac946b9d8797571f9e3d4b325db760e423f Reviewed-on: https://review.coreboot.org/c/coreboot/+/51932 Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/soc/amd/picasso/acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soc/amd') diff --git a/src/soc/amd/picasso/acpi.c b/src/soc/amd/picasso/acpi.c index 4ec08e16d1..7315b924a1 100644 --- a/src/soc/amd/picasso/acpi.c +++ b/src/soc/amd/picasso/acpi.c @@ -354,7 +354,8 @@ void generate_cpu_entries(const struct device *device) acpigen_write_CST_package(cstate_info, ARRAY_SIZE(cstate_info)); - acpigen_write_CSD_package(cpu >> 1, threads_per_core, CSD_HW_ALL, 0); + acpigen_write_CSD_package(cpu / threads_per_core, threads_per_core, + CSD_HW_ALL, 0); acpigen_pop_len(); } -- cgit v1.2.3