]> 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>
Thu, 21 Mar 2013 05:33:57 +0000 (16:33 +1100)
commitfad9282eaf042690090bc74e39f61bfa74c661c2
tree9beb1ae53cb7388777af77b2b687dff4899661c2
parent5af88995a9879e527a3f7195e628d38bea348269
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