diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-05-06 17:51:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:13:02 -0400 |
commit | 65a58ab044308ae65ca06c50fb10be5e0e080989 (patch) | |
tree | 7022dc793ce0166b4bb586b762dfcecd41df7dd4 /arch/um/sys-i386/tls.c | |
parent | a18ff1bde0c3da9ece3ba60e6eae2ef87f91a12e (diff) |
uml: no locking needed in tls.c
Comment the lack of locking on a couple of globals.
Also fix the formatting of __setup_host_supports_tls.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/sys-i386/tls.c')
-rw-r--r-- | arch/um/sys-i386/tls.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/um/sys-i386/tls.c b/arch/um/sys-i386/tls.c index 643dab585727..fea8e5e15cc4 100644 --- a/arch/um/sys-i386/tls.c +++ b/arch/um/sys-i386/tls.c | |||
@@ -23,9 +23,13 @@ | |||
23 | #include "skas.h" | 23 | #include "skas.h" |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | /* If needed we can detect when it's uninitialized. */ | 26 | /* |
27 | * If needed we can detect when it's uninitialized. | ||
28 | * | ||
29 | * These are initialized in an initcall and unchanged thereafter. | ||
30 | */ | ||
27 | static int host_supports_tls = -1; | 31 | static int host_supports_tls = -1; |
28 | int host_gdt_entry_tls_min = -1; | 32 | int host_gdt_entry_tls_min; |
29 | 33 | ||
30 | #ifdef CONFIG_MODE_SKAS | 34 | #ifdef CONFIG_MODE_SKAS |
31 | int do_set_thread_area_skas(struct user_desc *info) | 35 | int do_set_thread_area_skas(struct user_desc *info) |
@@ -361,7 +365,8 @@ out: | |||
361 | 365 | ||
362 | /* XXX: This part is probably common to i386 and x86-64. Don't create a common | 366 | /* XXX: This part is probably common to i386 and x86-64. Don't create a common |
363 | * file for now, do that when implementing x86-64 support.*/ | 367 | * file for now, do that when implementing x86-64 support.*/ |
364 | static int __init __setup_host_supports_tls(void) { | 368 | static int __init __setup_host_supports_tls(void) |
369 | { | ||
365 | check_host_supports_tls(&host_supports_tls, &host_gdt_entry_tls_min); | 370 | check_host_supports_tls(&host_supports_tls, &host_gdt_entry_tls_min); |
366 | if (host_supports_tls) { | 371 | if (host_supports_tls) { |
367 | printk(KERN_INFO "Host TLS support detected\n"); | 372 | printk(KERN_INFO "Host TLS support detected\n"); |