summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-03-30 02:04:02 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-04-07 22:56:46 +0000
commitc56350860f452628a0e307d279086a66d6d0961a (patch)
tree548380f18bc2d097004998fc8d374011cea6fecc /src/soc
parentc81fb7ca94e84bf1086756d0e5b4fad9adb75658 (diff)
soc/amd/picasso/acpi: fix domain argument of acpigen_write_CSD_package
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I50e88ac946b9d8797571f9e3d4b325db760e423f Reviewed-on: https://review.coreboot.org/c/coreboot/+/51932 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/picasso/acpi.c3
1 files changed, 2 insertions, 1 deletions
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();
}