ARM: smp: improve CPU bringup failure diagnostics
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 18 Dec 2010 12:34:39 +0000 (12:34 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 20 Dec 2010 15:09:14 +0000 (15:09 +0000)
commit58613cd1d4f8c2d5f25b6c57ad7fbed80e75a67b
treee28891865b6c3fd1dfc16b18f7af705a9689ccc3
parent90b44199e83ec780d6def11a602d825dc68438e3
ARM: smp: improve CPU bringup failure diagnostics

We used to print a bland error message which gave no clue as to the
failure when we failed to bring up a secondary CPU.  Resolve this by
separating the two failure cases.

If boot_secondary() fails, we print a message indicating the returned
error code from boot_secondary():
"CPU%u: failed to boot: %d\n", cpu, ret.

However, if boot_secondary() succeeded, but the CPU did not appear to
mark itself online within the timeout, indicate that it failed to come
online:
"CPU%u: failed to come online\n", cpu

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp.c