]> git.karo-electronics.de Git - karo-tx-linux.git/commit
early_printk: consolidate random copies of identical code
authorThomas Gleixner <tglx@linutronix.de>
Wed, 20 Mar 2013 04:07:33 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Mar 2013 04:22:55 +0000 (15:22 +1100)
commit2965c1fd309e465fde6e75d81e22bc49e1d373d4
treeef9dfe24a3dbab2c583815567d77925b96a5d64e
parent3d6249bec38e1cea932404f2a7086a847a1beb5d
early_printk: consolidate random copies of identical code

The early console implementations are the same all over the place.  Move
the print function to kernel/printk and get rid of the copies.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Cc: Richard Weinberger <richard@nod.at>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
15 files changed:
arch/arm/kernel/early_printk.c
arch/blackfin/kernel/early_printk.c
arch/microblaze/kernel/early_printk.c
arch/mips/kernel/early_printk.c
arch/powerpc/kernel/udbg.c
arch/sh/kernel/sh_bios.c
arch/sparc/kernel/setup_32.c
arch/sparc/kernel/setup_64.c
arch/tile/kernel/early_printk.c
arch/um/kernel/early_printk.c
arch/unicore32/kernel/early_printk.c
arch/x86/kernel/early_printk.c
include/linux/console.h
include/linux/printk.h
kernel/printk.c