cns21xx: add support for 3.10
[openwrt.git] / target / linux / cns21xx / patches-3.10 / 002-arm-debugll-printk.patch
1 --- a/kernel/printk.c
2 +++ b/kernel/printk.c
3 @@ -65,6 +65,10 @@ int console_printk[4] = {
4         DEFAULT_CONSOLE_LOGLEVEL,       /* default_console_loglevel */
5  };
6  
7 +#ifdef CONFIG_DEBUG_LL
8 +extern void printascii(char *);
9 +#endif /* CONFIG_DEBUG_LL */
10 +
11  /*
12   * Low level drivers may need that to know if they can schedule in
13   * their unblank() callback or not. So let's export it.
14 @@ -521,6 +525,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