From 2e032f07df0d4ff5c1d9814b82ed32820cb0ee59 Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Wed, 23 Oct 2019 15:31:51 -0700 Subject: arch/x86: Populate more fields in SMBIOS type 4 If CPUID leaf 0x16 is available (Skylake and later) use it to obtain current and maximum speed. Otherwise call weak function that can be provided elsewhere (cpu/soc/mainboard). Also, populate "core enabled" with the same value as "core count". TEST=tested on OCP Monolake with dmidecode -t processor Change-Id: Ie5d88dacae6623dfa0ceb3ca1bb5eeff2adda103 Signed-off-by: Andrey Petrov Reviewed-on: https://review.coreboot.org/c/coreboot/+/36283 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks --- src/include/smbios.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include') diff --git a/src/include/smbios.h b/src/include/smbios.h index eb947dc049..ef1c7de72c 100644 --- a/src/include/smbios.h +++ b/src/include/smbios.h @@ -53,6 +53,9 @@ const char *smbios_system_version(void); void smbios_system_set_uuid(u8 *uuid); const char *smbios_system_sku(void); +unsigned int smbios_cpu_get_max_speed_mhz(void); +unsigned int smbios_cpu_get_current_speed_mhz(void); + const char *smbios_mainboard_manufacturer(void); const char *smbios_mainboard_product_name(void); const char *smbios_mainboard_serial_number(void); -- cgit v1.2.3