Commit 719b3680 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Ingo Molnar

x86/smp: Adjust system_state check

To enable smp_processor_id() and might_sleep() debug checks earlier, it's
required to add system states between SYSTEM_BOOTING and SYSTEM_RUNNING.

Adjust the system_state check in announce_cpu() to handle the extra states.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170516184735.191715856@linutronix.deSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent ef284f5c
...@@ -863,7 +863,7 @@ static void announce_cpu(int cpu, int apicid) ...@@ -863,7 +863,7 @@ static void announce_cpu(int cpu, int apicid)
if (cpu == 1) if (cpu == 1)
printk(KERN_INFO "x86: Booting SMP configuration:\n"); printk(KERN_INFO "x86: Booting SMP configuration:\n");
if (system_state == SYSTEM_BOOTING) { if (system_state < SYSTEM_RUNNING) {
if (node != current_node) { if (node != current_node) {
if (current_node > (-1)) if (current_node > (-1))
pr_cont("\n"); pr_cont("\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment