summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/cpu/noncar
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-03-25 04:58:40 +0100
committerFelix Held <felix-coreboot@felixheld.de>2023-03-29 16:21:19 +0000
commit78cbcefb7662b5f749b5583dce2c78b100b9d58e (patch)
treee35ca35544c168d9bba2d73c50b0ce4e73495501 /src/soc/amd/common/block/cpu/noncar
parent2323acab6a7a4624e7f7de7e0f93e3aef4fc0157 (diff)
soc/amd/common/acpi/cpu_power_state: introduce & use get_pstate_latency
On the Zen-based CPUs, the transition and bus master latency are always written as 0, but on but on Stoneyridge hardware-dependent values are used. Introduce get_pstate_latency that returns 0 for all non-CAR AMD CPUs. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I81086fa64909c7350b3b171ea6ea9b46f1708f67 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74024 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/soc/amd/common/block/cpu/noncar')
-rw-r--r--src/soc/amd/common/block/cpu/noncar/cpu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/cpu/noncar/cpu.c b/src/soc/amd/common/block/cpu/noncar/cpu.c
index 609aed8d38..2cd847ee87 100644
--- a/src/soc/amd/common/block/cpu/noncar/cpu.c
+++ b/src/soc/amd/common/block/cpu/noncar/cpu.c
@@ -12,6 +12,11 @@ uint32_t get_pstate_0_reg(void)
return 0;
}
+uint32_t get_pstate_latency(void)
+{
+ return 0;
+}
+
unsigned int smbios_processor_family(struct cpuid_result res)
{
return 0x6b; /* Zen */