Prev: x86, xsave: moving boot cpu initialization to xsave_init()
Next: mm: iommu: An API to unify IOMMU, CPU and device memory management
From: Suresh Siddha on 20 Jul 2010 17:50 On Tue, 2010-07-20 at 11:50 -0700, Robert Richter wrote: > Boot cpu id is always 0, thus simplifying and unifying boot cpu check. > > boot_cpu_id is there for historical reasons and was renamed to > boot_cpu_physical_apicid in patch: > > c70dcb7 x86: change boot_cpu_id to boot_cpu_physical_apicid > > However, there are some remaining occurrences of boot_cpu_id that are > never touched in the kernel and thus its value is always 0. > > Signed-off-by: Robert Richter <robert.richter(a)amd.com> > --- > arch/x86/kernel/cpu/common.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c > index 3f715ef..26804b2 100644 > --- a/arch/x86/kernel/cpu/common.c > +++ b/arch/x86/kernel/cpu/common.c > @@ -1273,7 +1273,7 @@ void __cpuinit cpu_init(void) > /* > * Boot processor to setup the FP and extended state context info. > */ > - if (smp_processor_id() == boot_cpu_id) > + if (!smp_processor_id()) > init_thread_xstate(); > > xsave_init(); Acked-by: Suresh Siddha <suresh.b.siddha(a)intel.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |