lkml.org 
[lkml]   [2018]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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

    \
     
     \ /
      Last update: 2018-01-14 23:27    [W:2.911 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site