diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-01-27 15:09:13 +0200 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2014-04-09 11:36:06 +0200 |
commit | b2d25967142437a82da150d0134923e3fd783dbf (patch) | |
tree | 9ac69ad73a6ccf8f9ef2f90052980e41218c2fe3 /src/console/printk.c | |
parent | 21333f96c78e6181c7a376538c48f3718b71d9ef (diff) |
console: Unify do_printk()
Change-Id: I6c50e47d9d2d0d1f42beee477e49b2a0054d1786
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/5332
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/console/printk.c')
-rw-r--r-- | src/console/printk.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/console/printk.c b/src/console/printk.c index e24c752492..7ea8c06937 100644 --- a/src/console/printk.c +++ b/src/console/printk.c @@ -5,14 +5,12 @@ * */ +#include <smp/node.h> #include <smp/spinlock.h> #include <console/vtxprintf.h> #include <console/console.h> #include <trace.h> -int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL; -int default_console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL; - DECLARE_SPIN_LOCK(console_lock) int do_printk(int msg_level, const char *fmt, ...) @@ -24,6 +22,11 @@ int do_printk(int msg_level, const char *fmt, ...) return 0; } +#if CONFIG_SQUELCH_EARLY_SMP && defined(__PRE_RAM__) + if (!boot_cpu()) + return 0; +#endif + DISABLE_TRACE; spin_lock(&console_lock); |