Attention is currently required from: Arthur Heymans, Christian Walter, Jincheng Li, Johnny Lin, Jonathan Zhang, Lean Sheng Tan, Patrick Rudolph, Tim Chu.
Hello Jincheng Li,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/83332?usp=email
to review the following change.
Change subject: soc/intel/xeon_sp: Add smbios_get_max_socket ......................................................................
soc/intel/xeon_sp: Add smbios_get_max_socket
TEST=Boot on intel/avenuecity CRB SMBIOS type 4 and type 7 entries are created according to CPU counts on multiple cpu platforms
Change-Id: I10a20cf94821d4b6fa7af2637969724be1e3bf3d Signed-off-by: Jincheng Li jincheng.li@intel.com --- M src/soc/intel/xeon_sp/util.c 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/83332/1
diff --git a/src/soc/intel/xeon_sp/util.c b/src/soc/intel/xeon_sp/util.c index 4dbe7a4..9009666 100644 --- a/src/soc/intel/xeon_sp/util.c +++ b/src/soc/intel/xeon_sp/util.c @@ -11,6 +11,7 @@ #include <intelblocks/cpulib.h> #include <intelblocks/p2sb.h> #include <intelpch/lockdown.h> +#include <smbios.h> #include <soc/chip_common.h> #include <soc/pch_pci_devs.h> #include <soc/pci_devs.h> @@ -90,6 +91,11 @@ return get_iio_uds()->SystemStatus.numCpus; }
+unsigned int smbios_get_max_socket(void) +{ + return soc_get_num_cpus(); +} + union p2sb_bdf soc_get_hpet_bdf(void) { if (CONFIG(SOC_INTEL_COMMON_IBL_BASE)) {