From: Yinghai Lu Date: Sun, 10 May 2009 06:47:42 +0000 (-0700) Subject: x86: clean up and fix setup_clear/force_cpu_cap handling X-Git-Tag: v2.6.31-rc1~423^2~3^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e0c373749d7eb5b354ac0b043f2b2cdf84eefef;p=pandora-kernel.git x86: clean up and fix setup_clear/force_cpu_cap handling 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 Cc: Jeremy Fitzhardinge Cc: Rusty Russell Signed-off-by: Yinghai Lu LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed