Commit 0d6e2523 authored by David Mosberger's avatar David Mosberger Committed by Tony Luck

[IA64] do early_console_setup() on UP, too

Here is trivial patch to enable the early console setup for UP as well.
Tested on zx1.
Signed-off-by: default avatarDavid Mosberger-Tang <davidm@hpl.hp.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 4a179a46
...@@ -289,6 +289,15 @@ early_console_setup (char *cmdline) ...@@ -289,6 +289,15 @@ early_console_setup (char *cmdline)
return -1; return -1;
} }
static inline void
mark_bsp_online (void)
{
#ifdef CONFIG_SMP
/* If we register an early console, allow CPU 0 to printk */
cpu_set(smp_processor_id(), cpu_online_map);
#endif
}
void __init void __init
setup_arch (char **cmdline_p) setup_arch (char **cmdline_p)
{ {
...@@ -306,11 +315,8 @@ setup_arch (char **cmdline_p) ...@@ -306,11 +315,8 @@ setup_arch (char **cmdline_p)
machvec_init(acpi_get_sysname()); machvec_init(acpi_get_sysname());
#endif #endif
#ifdef CONFIG_SMP if (early_console_setup(*cmdline_p) == 0)
/* If we register an early console, allow CPU 0 to printk */ mark_bsp_online();
if (!early_console_setup(*cmdline_p))
cpu_set(smp_processor_id(), cpu_online_map);
#endif
#ifdef CONFIG_ACPI_BOOT #ifdef CONFIG_ACPI_BOOT
/* Initialize the ACPI boot-time table parser */ /* Initialize the ACPI boot-time table parser */
......
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