Re: [PATCH 2/2] x86/tsc: Add additional Intel CPU models to crystal_khz whitelist

From: Peter Zijlstra
Date: Thu Sep 15 2016 - 11:16:18 EST


On Thu, Sep 15, 2016 at 11:04:18AM -0400, Prarit Bhargava wrote:
> +++ b/arch/x86/kernel/tsc.c
> @@ -689,11 +689,18 @@ unsigned long native_calibrate_tsc(void)
> switch (boot_cpu_data.x86_model) {
> case INTEL_FAM6_SKYLAKE_MOBILE:
> case INTEL_FAM6_SKYLAKE_DESKTOP:
> + case INTEL_FAM6_KABYLAKE_MOBILE:
> + case INTEL_FAM6_KABYLAKE_DESKTOP:
> crystal_khz = 24000; /* 24.0 MHz */
> break;
> + case INTEL_FAM6_SKYLAKE_X:
> + crystal_khz = 24000; /* 25.0 MHz */

^^^ != ^^^^

did you mean to type: 25000 ?

> + break;
> case INTEL_FAM6_ATOM_GOLDMONT:
> crystal_khz = 19200; /* 19.2 MHz */
> break;
> + default:
> + crystal_khz = 0;
> }
> }
>
> --
> 1.7.9.3
>