]> git.baikalelectronics.ru Git - kernel.git/commit
serial: samsung: Change barrier() to cpu_relax() in console output
authorDoug Anderson <dianders@chromium.org>
Mon, 21 Apr 2014 16:40:36 +0000 (09:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Apr 2014 22:38:22 +0000 (15:38 -0700)
commit724319f70c95dd5efaafb223181312509cddd13b
treec1428aa4245d01149c008c70558b15a166c84d12
parentb960f06dd3e73cf53ab90cb49968cd5705f41a94
serial: samsung: Change barrier() to cpu_relax() in console output

The two functions to write out to the console (one used in normal
console mode and one in polling console mode) were slightly different.
One used a barrier() in its loop and the other a cpu_relax().  The
barrier() really doesn't do anything since we're using rd_regl() to
read the port anyway.  Switch it to cpu_relax() to make things
consistent.

No known bugs / issues are fixed by this change--it just makes things
more consistent.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c