diff options
-rw-r--r-- | src/soc/intel/xeon_sp/skx/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/intel/xeon_sp/skx/cpu.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/soc/intel/xeon_sp/skx/Kconfig b/src/soc/intel/xeon_sp/skx/Kconfig index 25e35bda35..1783c66b6f 100644 --- a/src/soc/intel/xeon_sp/skx/Kconfig +++ b/src/soc/intel/xeon_sp/skx/Kconfig @@ -25,6 +25,10 @@ config MAX_CPUS int default 80 +config CPU_BCLK_MHZ + int + default 100 + config PCR_BASE_ADDRESS hex default 0xfd000000 diff --git a/src/soc/intel/xeon_sp/skx/cpu.c b/src/soc/intel/xeon_sp/skx/cpu.c index 113c6301c3..119041605e 100644 --- a/src/soc/intel/xeon_sp/skx/cpu.c +++ b/src/soc/intel/xeon_sp/skx/cpu.c @@ -165,8 +165,6 @@ static const struct cpu_driver driver __cpu_driver = { .id_table = cpu_table, }; -#define CPU_BCLK 100 - static void set_max_turbo_freq(void) { msr_t msr, perf_ctl; @@ -190,7 +188,7 @@ static void set_max_turbo_freq(void) wrmsr(IA32_PERF_CTL, perf_ctl); printk(BIOS_DEBUG, "cpu: frequency set to %d\n", - ((perf_ctl.lo >> 8) & 0xff) * CPU_BCLK); + ((perf_ctl.lo >> 8) & 0xff) * CONFIG_CPU_BCLK_MHZ); FUNC_EXIT(); } |