• Yinghai Lu's avatar
    x86: clean up and fix setup_clear/force_cpu_cap handling · 3e0c3737
    Yinghai Lu authored
    setup_force_cpu_cap() only have one user (Xen guest code),
    but it should not reuse cleared_cpu_cpus, otherwise it
    will have problems on SMP.
    
    Need to have a separate cpu_cpus_set array too, for forced-on
    flags, beyond the forced-off flags.
    
    Also need to setup handling before all cpus caps are combined.
    
    [ Impact: fix the forced-set CPU feature flag logic ]
    
    Cc: H. Peter Anvin <hpa@linux.intel.com>
    Cc: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    Cc: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: default avatarYinghai Lu <yinghai.lu@kernel.org>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    3e0c3737
cpufeature.h 13.3 KB