soc/amd/picasso/cpu: move get_cpu_count to common code
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I0690787f492d764a20a4219822eb10fb5cd86de0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50406 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <amdblocks/cpu.h>
|
||||
#include <cpu/cpu.h>
|
||||
#include <cpu/x86/mp.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
@@ -41,11 +42,6 @@ static void pre_mp_init(void)
|
||||
x86_mtrr_check();
|
||||
}
|
||||
|
||||
int get_cpu_count(void)
|
||||
{
|
||||
return 1 + (cpuid_ecx(0x80000008) & 0xff);
|
||||
}
|
||||
|
||||
static void set_cstate_io_addr(void)
|
||||
{
|
||||
msr_t cst_addr;
|
||||
|
Reference in New Issue
Block a user