summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMatt Mackall <mpm@selenic.com>2005-05-01 17:59:02 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-01 17:59:02 +0200
commitd59745ce3e7aa13856bca16d3bcbb95041775ff6 (patch)
tree6e495bb6697d86534685bf813c43e210a8d8323a /arch
parent[PATCH] Exterminate PAGE_BUG (diff)
downloadlinux-d59745ce3e7aa13856bca16d3bcbb95041775ff6.tar.xz
linux-d59745ce3e7aa13856bca16d3bcbb95041775ff6.zip
[PATCH] clean up kernel messages
Arrange for all kernel printks to be no-ops. Only available if CONFIG_EMBEDDED. This patch saves about 375k on my laptop config and nearly 100k on minimal configs. Signed-off-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/kernel/head.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/kernel/head.S b/arch/i386/kernel/head.S
index d273fd746192..e966fc8c44c4 100644
--- a/arch/i386/kernel/head.S
+++ b/arch/i386/kernel/head.S
@@ -380,6 +380,7 @@ rp_sidt:
ALIGN
ignore_int:
cld
+#ifdef CONFIG_PRINTK
pushl %eax
pushl %ecx
pushl %edx
@@ -400,6 +401,7 @@ ignore_int:
popl %edx
popl %ecx
popl %eax
+#endif
iret
/*