]> xenbits.xensource.com Git - people/sstabellini/linux-pvhvm-deprecated.git/commitdiff
ARM: enable earlyprintk="xen"
authorIan Campbell <ian.campbell@citrix.com>
Fri, 1 Jun 2012 16:21:19 +0000 (17:21 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 8 Jun 2012 11:58:13 +0000 (11:58 +0000)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
arch/arm/kernel/early_printk.c

index 85aa2b292692b5296f86ca57851bab1e5c9cab05..5837d7dfffecc3feb6942539119badfd2e70fc67 100644 (file)
@@ -11,6 +11,8 @@
 #include <linux/kernel.h>
 #include <linux/console.h>
 #include <linux/init.h>
+#include <linux/string.h>
+#include <xen/hvc-console.h>
 
 extern void printch(int);
 
@@ -50,7 +52,12 @@ asmlinkage void early_printk(const char *fmt, ...)
 
 static int __init setup_early_printk(char *buf)
 {
-       register_console(&early_console);
+#ifdef CONFIG_HVC_XEN
+       if (!strncmp(buf, "xen", 3))
+               register_console(&xenboot_console);
+       else
+#endif
+               register_console(&early_console);
        return 0;
 }