cns21xx: add support for 3.6
[openwrt.git] / target / linux / cns21xx / patches-3.6 / 002-arm-debugll-printk.patch
1 --- a/kernel/printk.c
2 +++ b/kernel/printk.c
3 @@ -48,6 +48,10 @@
4  #define CREATE_TRACE_POINTS
5  #include <trace/events/printk.h>
6  
7 +#ifdef CONFIG_DEBUG_LL
8 +extern void printascii(char *);
9 +#endif /* CONFIG_DEBUG_LL */
10 +
11  /*
12   * Architectures can override it:
13   */
14 @@ -473,6 +477,10 @@ static ssize_t devkmsg_read(struct file
15         ts_usec = msg->ts_nsec;
16         do_div(ts_usec, 1000);
17  
18 +#ifdef CONFIG_DEBUG_LL
19 +       printascii(printk_buf);
20 +#endif
21 +
22         /*
23          * If we couldn't merge continuation line fragments during the print,
24          * export the stored flags to allow an optional external merge of the