serial: cpm_uat: reducing CPM serial latency
authorBaurzhan Ismagulov <ibr@radix50.net>
Thu, 11 Nov 2010 09:53:03 +0000 (10:53 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 11 Nov 2010 19:35:59 +0000 (11:35 -0800)
commit5b04ec4ad8e2ffdc9d1f27fd6eb5118e919bc87d
tree5e5b6ce308c019c9d8e0e3ace7afcae16e6acedc
parent63295cb2ff4329f563579f3d20c5855a96a866d5
serial: cpm_uat: reducing CPM serial latency

Setting Rx FIFO size to 1 reduces reader process wakeup latency up to
20x for baud rates <= 9600. This patch sets the Rx FIFO size to 1 for
baud rates <= 9600 or if low latency has been requested for the tty.

Signed-off-by: Michael Trimarchi <michael@gandalf.sssup.it>
Signed-off-by: Bruno Morelli <bruno@evidence.eu.com>
Signed-off-by: Baurzhan Ismagulov <ibr@radix50.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/cpm_uart/cpm_uart_core.c