summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/common/block/include/amdblocks
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-03-24 00:07:24 +0100
committerFelix Held <felix-coreboot@felixheld.de>2023-03-27 12:03:05 +0000
commitca8a8de999824bfae5b66b32a237246805ed857c (patch)
tree2817769b27a1662a1263a4f8254c719de464103c /src/soc/amd/common/block/include/amdblocks
parent2c9de49a971497fadaf5272fd1bacee7a316dbfc (diff)
downloadcoreboot-ca8a8de999824bfae5b66b32a237246805ed857c.tar.gz
coreboot-ca8a8de999824bfae5b66b32a237246805ed857c.tar.bz2
coreboot-ca8a8de999824bfae5b66b32a237246805ed857c.zip
soc/amd: factor out common get_pstate_core_power implementation
Now that all get_pstate_core_power implementations in each SoC's acpi.c file is identical, factor it out into a common implementation. This implementation will also work for Stoneyridge which isn't using the common P state code yet. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Iba3833024a5e3ca5a47ffb1c1afdbfd884313c96 Reviewed-on: https://review.coreboot.org/c/coreboot/+/73997 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/common/block/include/amdblocks')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/cpu.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/cpu.h b/src/soc/amd/common/block/include/amdblocks/cpu.h
index 8c868cb99ffa..18b300dfdd07 100644
--- a/src/soc/amd/common/block/include/amdblocks/cpu.h
+++ b/src/soc/amd/common/block/include/amdblocks/cpu.h
@@ -19,7 +19,6 @@ union pstate_msr; /* proper definition is in soc/msr.h */
uint32_t get_uvolts_from_vid(uint16_t core_vid);
uint32_t get_pstate_core_freq(union pstate_msr pstate_reg);
uint32_t get_pstate_core_uvolts(union pstate_msr pstate_reg);
-uint32_t get_pstate_core_power(union pstate_msr pstate_reg);
const acpi_cstate_t *get_cstate_config_data(size_t *size);
#endif /* AMD_BLOCK_CPU_H */