diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:33:06 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:33:06 +0100 |
commit | 076f9776f5d8d131b36955db8641aba3893c2c1b (patch) | |
tree | b85e705ecfe34400c6e1188fb470572956a232ab /kernel | |
parent | 8866cd9dc9d0bbadcf361a14e0cdfecb66473087 (diff) | |
download | linux-076f9776f5d8d131b36955db8641aba3893c2c1b.tar.gz linux-076f9776f5d8d131b36955db8641aba3893c2c1b.tar.bz2 linux-076f9776f5d8d131b36955db8641aba3893c2c1b.zip |
x86: make early printk selectable on 64-bit as well
Enable CONFIG_EMBEDDED to select CONFIG_EARLY_PRINTK on 64-bit as well.
saves ~2K:
text data bss dec hex filename
7290283 3672091 1907848 12870222 c4624e vmlinux.before
7288373 3671795 1907848 12868016 c459b0 vmlinux.after
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/printk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index 3b7c968d0ef9..58bbec684119 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -36,6 +36,13 @@ #include <asm/uaccess.h> +/* + * Architectures can override it: + */ +void __attribute__((weak)) early_printk(const char *fmt, ...) +{ +} + #define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT) /* printk's without a loglevel use this.. */ |