Skip to contentSkip to conversation

do early_console_setup() on UP, too

PATCH New David Mosberger 1 participant 1 message Dec 14, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 do early_console_setup() on UP, too

Tony,

Here is trivial patch to enable the early console setup for UP as well. Tested on zx1.

	--david

=== arch/ia64/kernel/setup.c 1.81 vs edited ==--- 1.81/arch/ia64/kernel/setup.c 2004-11-18 23:03:10 -08:00
+++ edited/arch/ia64/kernel/setup.c 2004-12-14 12:41:59 -08:00
@@ -289,6 +289,15 @@
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
setup_arch (char **cmdline_p)
{
@@ -306,11 +315,8 @@
machvec_init(acpi_get_sysname());
#endif

-#ifdef CONFIG_SMP
- /* If we register an early console, allow CPU 0 to printk */
- if (!early_console_setup(*cmdline_p))
- cpu_set(smp_processor_id(), cpu_online_map);
-#endif
+ if (early_console_setup(*cmdline_p) = 0)
+ mark_bsp_online();

#ifdef CONFIG_ACPI_BOOT
/* Initialize the ACPI boot-time table parser */