[PATCH] Very early printk, for next-20141106 (3.19?)

From: Krzysztof Kozlowski
Date: Thu Nov 06 2014 - 06:58:07 EST


Signed-off-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx>
---
kernel/printk/printk.c | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 1b7092dbb590..269318013504 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -1708,6 +1708,13 @@ asmlinkage int vprintk_emit(int facility, int level,
}
}

+ if (1) {
+ extern void printascii(const char *);
+ printascii(text);
+ printed_len = 0;
+ goto early_printk_out;
+ }
+
if (level == LOGLEVEL_DEFAULT)
level = default_message_loglevel;

@@ -1754,6 +1761,7 @@ asmlinkage int vprintk_emit(int facility, int level,
dict, dictlen, text, text_len);
}

+early_printk_out:
logbuf_cpu = UINT_MAX;
raw_spin_unlock(&logbuf_lock);
lockdep_on();
--
1.9.1


--=-t4KcOohHTQ3Z+aShKAkE--

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/