]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: 8705/1: early_printk: use printascii() rather than printch()
authorNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 6 Oct 2017 18:49:19 +0000 (19:49 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 12 Oct 2017 10:29:29 +0000 (11:29 +0100)
commitde880632fc02a889c0c3d2247fa08dc9e1afa228
tree69836d177cedae6334eb8072da15e61f0fe85942
parente11d1314d83ec7f562fa01df29878d0b1138cf00
ARM: 8705/1: early_printk: use printascii() rather than printch()

With printch() the console messages are sent out one character at a time
which is agonizingly slow especially with semihosting as the whole trap
intercept, remote byte access, and system resume danse is performed for
every single character across a relatively slow remote debug connection.

Let's use printascii() to send a whole string at once. This is also going
to be more efficient, albeit to a quite lesser extent, with serial ports
as well.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/early_printk.c