summaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/stderr_console.c
diff options
context:
space:
mode:
authorJeff Dike2006-09-29 10:58:50 +0200
committerLinus Torvalds2006-09-29 18:18:04 +0200
commit730760e90a173ef81f89beed2f1dad2fab310f68 (patch)
treee60039deb19683fac30e58277450c657ecd33e07 /arch/um/drivers/stderr_console.c
parent[PATCH] uml: mechanical tidying after random MACs change (diff)
downloadkernel-qcow2-linux-730760e90a173ef81f89beed2f1dad2fab310f68.tar.gz
kernel-qcow2-linux-730760e90a173ef81f89beed2f1dad2fab310f68.tar.xz
kernel-qcow2-linux-730760e90a173ef81f89beed2f1dad2fab310f68.zip
[PATCH] uml: locking documentation
Some locking documentation and a cleanup. uml_exitcode is copied into a local before sprintf sees it, in case sprintf does anything non-atomic with it. The rest are comments about why certain globals don't need any kind of locking. Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/stderr_console.c')
-rw-r--r--arch/um/drivers/stderr_console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/um/drivers/stderr_console.c b/arch/um/drivers/stderr_console.c
index 6d2cf32a9e8f..911539293871 100644
--- a/arch/um/drivers/stderr_console.c
+++ b/arch/um/drivers/stderr_console.c
@@ -9,6 +9,8 @@
/*
* Don't register by default -- as this registeres very early in the
* boot process it becomes the default console.
+ *
+ * Initialized at init time.
*/
static int use_stderr_console = 0;