From: roel kluin Date: Sun, 19 Oct 2008 03:27:46 +0000 (-0700) Subject: Altix serial: fix X-Git-Tag: v2.6.28-rc1~172 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f3ccaed13944b9cfa9af7f6c70bfb292e42a347;p=platform%2Fupstream%2Fkernel-adaptation-pc.git Altix serial: fix In function sn_sal_switch_to_asynch(): drivers/serial/sn_console.c:713: HZ * SN_SAL_UART_FIFO_DEPTH / SN_SAL_UART_FIFO_SPEED_CPS; After preprocessing (see defines in patch) this becomes HZ * 16 / 9600 / 10 (associativity from left to right), not equivalent to HZ * 16 / 960. Looks-obviously-right-to: Tony Luck Cc: Jes Sorensen Acked-by: Pat Gefre Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/serial/sn_console.c b/drivers/serial/sn_console.c index b73e3c0..d5276c0 100644 --- a/drivers/serial/sn_console.c +++ b/drivers/serial/sn_console.c @@ -61,7 +61,7 @@ #define SN_SAL_BUFFER_SIZE (64 * (1 << 10)) #define SN_SAL_UART_FIFO_DEPTH 16 -#define SN_SAL_UART_FIFO_SPEED_CPS 9600/10 +#define SN_SAL_UART_FIFO_SPEED_CPS (9600/10) /* sn_transmit_chars() calling args */ #define TRANSMIT_BUFFERED 0