X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=arch%2Fx86%2Fkernel%2Fsmpboot.c;h=c635663b20d9abb0a9557b6b9cc41c28d34c2200;hb=74b84233458e9db7c160cec67638efdbec748ca9;hp=ef53e667e0517fea45cf43da492ca50e1552eced;hpb=a71c8bc5dfefbbf80ef90739791554ef7ea4401b;p=firefly-linux-kernel-4.4.55.git diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index ef53e667e051..c635663b20d9 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -68,6 +68,8 @@ #include #include #include +#include +#include #include #include #include @@ -903,6 +905,9 @@ int __cpuinit native_cpu_up(unsigned int cpu, struct task_struct *tidle) per_cpu(cpu_state, cpu) = CPU_UP_PREPARE; + /* the FPU context is blank, nobody can own it */ + __cpu_disable_lazy_restore(cpu); + err = do_boot_cpu(apicid, cpu, tidle); if (err) { pr_debug("do_boot_cpu failed %d\n", err);