Messages in this thread | | | Date | Sun, 14 Jan 2018 12:39:14 +0100 (CET) | From | Thomas Gleixner <> | Subject | Re: [PATCH] x86/retpoline: Fill RSB on context switch for affected CPUs |
| |
On Fri, 12 Jan 2018, David Woodhouse wrote: > +/* Check for Skylake-like CPUs (for RSB handling) */ > +static bool __init is_skylake_era(void) > +{ > + if (boot_cpu_data.x86 == 6) {
This wants a checkfor vendor = intel
> + switch (boot_cpu_data.x86_model) { > + case INTEL_FAM6_SKYLAKE_MOBILE: > + case INTEL_FAM6_SKYLAKE_DESKTOP: > + case INTEL_FAM6_SKYLAKE_X: > + case INTEL_FAM6_KABYLAKE_MOBILE: > + case INTEL_FAM6_KABYLAKE_DESKTOP: > + return true; > + } > + }
Thanks,
tglx
| |