tmp_suning_uos_patched/arch/mips
Gerd Hoffmann 69331af79c Fixes and cleanups for earlyprintk aka boot console
The console subsystem already has an idea of a boot console, using the
CON_BOOT flag.  The implementation has some flaws though.  The major
problem is that presence of a boot console makes register_console() ignore
any other console devices (unless explicitly specified on the kernel
command line).

This patch fixes the console selection code to *not* consider a boot
console a full-featured one, so the first non-boot console registering will
become the default console instead.  This way the unregister call for the
boot console in the register_console() function actually triggers and the
handover from the boot console to the real console device works smoothly.
Added a printk for the handover, so you know which console device the
output goes to when the boot console stops printing messages.

The disable_early_printk() call is obsolete with that patch, explicitly
disabling the early console isn't needed any more as it works automagically
with that patch.

I've walked through the tree, dropped all disable_early_printk() instances
found below arch/ and tagged the consoles with CON_BOOT if needed.  The
code is tested on x86, sh (thanks to Paul) and mips (thanks to Ralf).

Changes to last version: Rediffed against -rc3, adapted to mips cleanups by
Ralf, fixed "udbg-immortal" cmd line arg on powerpc.

Signed-off-by: Gerd Hoffmann <kraxel@exsuse.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Andi Kleen <ak@suse.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-08 11:15:04 -07:00
..
arc [MIPS] ARC: Fix several compiler warnings. 2007-03-08 01:10:30 +00:00
au1000 [MIPS] MTX1: add idsel cardbus ressources 2007-03-04 19:02:44 +00:00
basler/excite [MIPS] Use DEFINE_SPINLOCK instead of SPIN_LOCK_UNLOCKED. 2007-04-27 16:20:25 +01:00
boot
cobalt Merge master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 2007-05-01 00:24:54 -04:00
configs [MIPS] Remove pnx8550-v2pci_defconfig 2007-04-27 16:20:25 +01:00
ddb5xxx [MIPS] Misc fixes for plat_irq_dispatch functions 2007-03-19 20:22:43 +00:00
dec [MIPS] DEC: Remove call to register_prom_console. 2007-03-09 12:14:52 +00:00
emma2rh [MIPS] Misc fixes for plat_irq_dispatch functions 2007-03-19 20:22:43 +00:00
gt64120 [MIPS] merge GT64111 PCI routines and GT64120 PCI_0 routines 2007-04-27 16:20:23 +01:00
jazz [MIPS] Jazz: Fix warning. 2007-03-24 17:01:50 +00:00
jmr3927 [MIPS] JMR3927 cleanup 2007-04-27 16:20:23 +01:00
kernel Fixes and cleanups for earlyprintk aka boot console 2007-05-08 11:15:04 -07:00
lasat [MIPS] Fix and cleanup the mess that a dozen prom_printf variants are. 2007-03-04 19:02:37 +00:00
lib PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
lib-32 [MIPS] Kill redundant EXTRA_AFLAGS 2007-02-26 23:06:05 +00:00
lib-64 [MIPS] Kill redundant EXTRA_AFLAGS 2007-02-26 23:06:05 +00:00
math-emu [MIPS] FPU ownership management & preemption fixes 2007-03-17 01:03:26 +00:00
mips-boards MIPSnet: Modernize use platform_device API. 2007-04-28 11:01:01 -04:00
mm [MIPS] Remove unused argument from kunmap_coherent(). 2007-04-27 16:20:24 +01:00
momentum [MIPS] Misc fixes for plat_irq_dispatch functions 2007-03-19 20:22:43 +00:00
oprofile [MIPS] Fix oprofile logic to physical counter remapping 2007-04-24 22:10:18 +01:00
pci [MIPS] Register PCI host bridge resource earlier 2007-04-27 16:20:25 +01:00
philips/pnx8550 [MIPS] Misc fixes for plat_irq_dispatch functions 2007-03-19 20:22:43 +00:00
pmc-sierra serial driver PMC MSP71xx 2007-05-07 12:12:50 -07:00
qemu [MIPS] Qemu: Fix Symmetric Uniprocessor support. 2007-03-19 20:22:43 +00:00
sgi-ip22 [MIPS] IP22: Get rid of volatile in IP22 core code. 2007-04-27 16:20:23 +01:00
sgi-ip27 [MIPS] IP27: Build fix 2007-03-07 00:07:18 +00:00
sgi-ip32 [MIPS] Misc fixes for plat_irq_dispatch functions 2007-03-19 20:22:43 +00:00
sibyte [MIPS] Add bcm1480 ZBus trace support, fix wait related bugs 2007-04-27 16:20:25 +01:00
sni [MIPS] Change PCI host bridge setup/resources 2007-04-27 16:20:25 +01:00
tx4927 [MIPS] Misc fixes for plat_irq_dispatch functions 2007-03-19 20:22:43 +00:00
tx4938 [MIPS] No need to write c0_compare in plat_timer_setup 2007-03-04 19:02:35 +00:00
vr41xx [MIPS] update vr41xx Kconfig 2007-04-27 16:20:26 +01:00
defconfig [MIPS] Viper2: Remove defective support. 2007-03-13 16:59:31 +00:00
Kconfig RM9000 serial driver 2007-05-07 12:12:50 -07:00
Kconfig.debug [MIPS] Make SMTC_IDLE_HOOK_DEBUG a proper option in Kconfig.debug. 2007-02-26 23:06:06 +00:00
Makefile [MIPS] Add bcm1480 ZBus trace support, fix wait related bugs 2007-04-27 16:20:25 +01:00