summaryrefslogtreecommitdiff
path: root/target/linux/cns21xx/patches-2.6.36/002-arm-debugll-printk.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-12-30 17:19:16 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-12-30 17:19:16 +0000
commit72ba27ae72480d5a23b77b5760d81d4142f8181b (patch)
treee3572d5b242208667ee40cbfd0b37fc55de290e6 /target/linux/cns21xx/patches-2.6.36/002-arm-debugll-printk.patch
parenta718ebf1ed8956ec84ccd2d7f79653c0c0c74e5b (diff)
downloadmtk-20170518-72ba27ae72480d5a23b77b5760d81d4142f8181b.zip
mtk-20170518-72ba27ae72480d5a23b77b5760d81d4142f8181b.tar.gz
mtk-20170518-72ba27ae72480d5a23b77b5760d81d4142f8181b.tar.bz2
cns21xx: add initial support for the Cavium CNS21xx SoC
SVN-Revision: 24859
Diffstat (limited to 'target/linux/cns21xx/patches-2.6.36/002-arm-debugll-printk.patch')
-rw-r--r--target/linux/cns21xx/patches-2.6.36/002-arm-debugll-printk.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/cns21xx/patches-2.6.36/002-arm-debugll-printk.patch b/target/linux/cns21xx/patches-2.6.36/002-arm-debugll-printk.patch
new file mode 100644
index 0000000..baa0e65
--- /dev/null
+++ b/target/linux/cns21xx/patches-2.6.36/002-arm-debugll-printk.patch
@@ -0,0 +1,24 @@
+--- a/kernel/printk.c
++++ b/kernel/printk.c
+@@ -48,6 +48,10 @@
+ #define for_each_console(con) \
+ for (con = console_drivers; con != NULL; con = con->next)
+
++#ifdef CONFIG_DEBUG_LL
++extern void printascii(char *);
++#endif /* CONFIG_DEBUG_LL */
++
+ /*
+ * Architectures can override it:
+ */
+@@ -760,6 +764,10 @@ asmlinkage int vprintk(const char *fmt,
+ }
+ }
+
++#ifdef CONFIG_DEBUG_LL
++ printascii(printk_buf);
++#endif
++
+ /*
+ * Copy the output into log_buf. If the caller didn't provide
+ * appropriate log level tags, we insert them here