All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -mm] console: console_drivers not initialized
@ 2006-09-25 21:07 dwalker
  2006-09-25 21:11 ` Russell King
  0 siblings, 1 reply; 6+ messages in thread
From: dwalker @ 2006-09-25 21:07 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

I was doing -rt stuff on a PPC PowerBook G4. It would always reboot
itself when it hit console_init() .

I noticed that the console code seems to want console_drivers = NULL,
but it never actually sets it that way. Once I added this, the reboot 
issue was gone..

Signed-Off-By: Daniel Walker <dwalker@mvista.com>

Index: linux-2.6.18/kernel/printk.c
===================================================================
--- linux-2.6.18.orig/kernel/printk.c
+++ linux-2.6.18/kernel/printk.c
@@ -68,7 +68,7 @@ EXPORT_SYMBOL(oops_in_progress);
  */
 static DECLARE_MUTEX(console_sem);
 static DECLARE_MUTEX(secondary_console_sem);
-struct console *console_drivers;
+struct console *console_drivers = NULL;
 /*
  * This is used for debugging the mess that is the VT code by
  * keeping track if we have the console semaphore held. It's
--

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-09-26  5:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-25 21:07 [PATCH -mm] console: console_drivers not initialized dwalker
2006-09-25 21:11 ` Russell King
2006-09-25 21:26   ` Daniel Walker
2006-09-25 21:30     ` Russell King
2006-09-25 21:42     ` Andrew Morton
2006-09-26  5:13       ` Paul Mackerras

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.