diff options
author | Matt Mackall <mpm@selenic.com> | 2005-05-01 11:59:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 11:59:02 -0400 |
commit | d59745ce3e7aa13856bca16d3bcbb95041775ff6 (patch) | |
tree | 6e495bb6697d86534685bf813c43e210a8d8323a /arch/i386/kernel | |
parent | cd7619d6bf36564cf54ff7218ef54e558a741913 (diff) |
[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/i386/kernel')
-rw-r--r-- | arch/i386/kernel/head.S | 2 |
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: | |||
380 | ALIGN | 380 | ALIGN |
381 | ignore_int: | 381 | ignore_int: |
382 | cld | 382 | cld |
383 | #ifdef CONFIG_PRINTK | ||
383 | pushl %eax | 384 | pushl %eax |
384 | pushl %ecx | 385 | pushl %ecx |
385 | pushl %edx | 386 | pushl %edx |
@@ -400,6 +401,7 @@ ignore_int: | |||
400 | popl %edx | 401 | popl %edx |
401 | popl %ecx | 402 | popl %ecx |
402 | popl %eax | 403 | popl %eax |
404 | #endif | ||
403 | iret | 405 | iret |
404 | 406 | ||
405 | /* | 407 | /* |