]> git.baikalelectronics.ru Git - kernel.git/commit
hvc_console: Change an mb() to smp_mb() and add some comments
authorMilton Miller <miltonm@bga.com>
Thu, 8 Jan 2009 02:14:18 +0000 (02:14 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 13 Jan 2009 03:48:01 +0000 (14:48 +1100)
commitb17955bc340bc58618a60177ad4f022f058a6330
treedeb3764686dcbeb5ab013ecf6183d55c514f216f
parent447d8b43c5095cdfb8484d7b49a734327869f909
hvc_console: Change an mb() to smp_mb() and add some comments

I remember some history on this barrier.  There was a race between
open via /dev/console and the tty being fully setup.  Its also why
there is a temporary variable and the global is assigned at the end
of the function.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/char/hvc_console.c