summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2015-10-17 16:36:24 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-17 21:32:21 -0700
commite052c6d15c61cc4caff2f06cbca72b183da9f15e (patch)
tree833a650c7a1fa3581416b433adbaa890dbe31962 /drivers/tty
parente176058f0de53c2346734e5254835e0045364001 (diff)
downloadop-kernel-dev-e052c6d15c61cc4caff2f06cbca72b183da9f15e.zip
op-kernel-dev-e052c6d15c61cc4caff2f06cbca72b183da9f15e.tar.gz
tty: Use unbound workqueue for all input workers
The commonly accepted wisdom that scheduling work on the same cpu that handled interrupt i/o benefits from cache-locality is only true if the cpu is idle (since bound kworkers are often the highest vruntime and thus the lowest priority). Measurements of scheduling via the unbound queue show lowered worst-case latency responses of up to 5x over bound workqueue, without increase in average latency or throughput. pty i/o test measurements show >3x (!) reduced total running time; tests previously taking ~8s now complete in <2.5s. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/tty_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c
index 7cc16db..9a479e6 100644
--- a/drivers/tty/tty_buffer.c
+++ b/drivers/tty/tty_buffer.c
@@ -403,7 +403,7 @@ void tty_schedule_flip(struct tty_port *port)
* flush_to_ldisc() sees buffer data.
*/
smp_store_release(&buf->tail->commit, buf->tail->used);
- schedule_work(&buf->work);
+ queue_work(system_unbound_wq, &buf->work);
}
EXPORT_SYMBOL(tty_schedule_flip);
OpenPOWER on IntegriCloud