tty/metag_da: Add console_poll module parameter
authorJames Hogan <james.hogan@imgtec.com>
Fri, 12 Sep 2014 22:15:22 +0000 (23:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 01:35:56 +0000 (21:35 -0400)
commitc3f43eec80d54088fd9f02b223a1f972c5968110
tree485d640a0fe274a60a390a8c5d6a46a7e6ed99b5
parent716e115cd7f75e3ab717f467432fd4b8cd23ee2c
tty/metag_da: Add console_poll module parameter

Currently the metag_da console channel is write only, it doesn't get
polled for incoming data. This is for performance & latency reasons as
polling blocks the processor for a significant amount of time waiting
for the JTAG probe to respond to the request and restart the thread.
This means that the console channel cannot be used for a login prompt,
so ttyDA2 is usually used instead.

In a virtual environment with a virtual DA such as QEMU however the
polling is much cheaper as the request can be handled immediately. It is
useful to be able to enable polling in such an environment in order to
get both the kernel log and a usable login prompt on the same DA
channel.

Add a console_poll module parameter which allows polling to be enabled
for the console channel. It defaults to off as that is the current
behaviour for good reason on real hardware.

It can be enabled by appending metag_da.console_poll to the kernel
command line.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/metag_da.c
This page took 0.026461 seconds and 5 git commands to generate.