diff options
author | Marc Jones <marcjones@sysproconsulting.com> | 2020-10-28 17:00:31 -0600 |
---|---|---|
committer | Marc Jones <marc@marcjonesconsulting.com> | 2020-10-30 18:55:58 +0000 |
commit | 70907b00e6b16f7bf6407c3f58a06473209a1843 (patch) | |
tree | af93b5e390a76e2ff01b34a082dbbdc73fd7830d /src/soc/intel/xeon_sp/skx/include | |
parent | 444fda45287822920d389809d9dd1f935f22c592 (diff) |
soc/intel/xeon_sp: Call common soc_get_num_cpus()
Use a common function to get the number of CPUs for each soc. This
removes a #if for different function names in the common code.
Change-Id: I3348d37fcae72247731e465ec2a65d9583a2f180
Signed-off-by: Marc Jones <marcjones@sysproconsulting.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46970
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/intel/xeon_sp/skx/include')
-rw-r--r-- | src/soc/intel/xeon_sp/skx/include/soc/cpu.h | 1 | ||||
-rw-r--r-- | src/soc/intel/xeon_sp/skx/include/soc/soc_util.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/xeon_sp/skx/include/soc/cpu.h b/src/soc/intel/xeon_sp/skx/include/soc/cpu.h index 0e3028da74..433598b5c0 100644 --- a/src/soc/intel/xeon_sp/skx/include/soc/cpu.h +++ b/src/soc/intel/xeon_sp/skx/include/soc/cpu.h @@ -14,7 +14,6 @@ /* CPU bus clock is fixed at 100MHz */ #define CPU_BCLK 100 -int get_cpu_count(void); void xeon_sp_init_cpus(struct device *dev); #endif diff --git a/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h b/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h index 76f7c8be4b..25668301a4 100644 --- a/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h +++ b/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h @@ -26,5 +26,6 @@ int get_threads_per_package(void); const struct SystemMemoryMapHob *get_system_memory_map(void); void set_bios_init_completion(void); +unsigned int soc_get_num_cpus(void); #endif /* _SOC_UTIL_H_ */ |