Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8154fa37 authored by Glauber de Oliveira Costa's avatar Glauber de Oliveira Costa Committed by Ingo Molnar
Browse files

x86: move assignment of CPU_PREPARE before do_boot_cpu



Done to match x86_64

Signed-off-by: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent f3ce4466
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -958,6 +958,7 @@ int __cpuinit native_cpu_up(unsigned int cpu)
		return -EINVAL;
	}

	per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
#ifdef CONFIG_HOTPLUG_CPU

	/*
@@ -976,7 +977,6 @@ int __cpuinit native_cpu_up(unsigned int cpu)
		return -EIO;
	}

	per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
	/* Unleash the CPU! */
	cpu_set(cpu, smp_commenced_mask);