Commit 96fbb281 authored by Andrew Morton's avatar Andrew Morton Committed by james toy

s/barrier/cpu_relax/

Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Cc: Andrew Victor <linux@maxim.org.za>
Cc: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 6cfcf302
...@@ -1217,7 +1217,7 @@ static int atmel_verify_port(struct uart_port *port, struct serial_struct *ser) ...@@ -1217,7 +1217,7 @@ static int atmel_verify_port(struct uart_port *port, struct serial_struct *ser)
static int atmel_poll_get_char(struct uart_port *port) static int atmel_poll_get_char(struct uart_port *port)
{ {
while (!(UART_GET_CSR(port) & ATMEL_US_RXRDY)) while (!(UART_GET_CSR(port) & ATMEL_US_RXRDY))
barrier(); cpu_relax();
return UART_GET_CHAR(port); return UART_GET_CHAR(port);
} }
...@@ -1225,7 +1225,7 @@ static int atmel_poll_get_char(struct uart_port *port) ...@@ -1225,7 +1225,7 @@ static int atmel_poll_get_char(struct uart_port *port)
static void atmel_poll_put_char(struct uart_port *port, unsigned char ch) static void atmel_poll_put_char(struct uart_port *port, unsigned char ch)
{ {
while (!(UART_GET_CSR(port) & ATMEL_US_TXRDY)) while (!(UART_GET_CSR(port) & ATMEL_US_TXRDY))
barrier(); cpu_relax();
UART_PUT_CHAR(port, ch); UART_PUT_CHAR(port, ch);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment