Commit 65a58ab0 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

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: default avatarJeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a18ff1bd
...@@ -23,9 +23,13 @@ ...@@ -23,9 +23,13 @@
#include "skas.h" #include "skas.h"
#endif #endif
/* If needed we can detect when it's uninitialized. */ /*
* If needed we can detect when it's uninitialized.
*
* These are initialized in an initcall and unchanged thereafter.
*/
static int host_supports_tls = -1; static int host_supports_tls = -1;
int host_gdt_entry_tls_min = -1; int host_gdt_entry_tls_min;
#ifdef CONFIG_MODE_SKAS #ifdef CONFIG_MODE_SKAS
int do_set_thread_area_skas(struct user_desc *info) int do_set_thread_area_skas(struct user_desc *info)
...@@ -361,7 +365,8 @@ out: ...@@ -361,7 +365,8 @@ out:
/* XXX: This part is probably common to i386 and x86-64. Don't create a common /* XXX: This part is probably common to i386 and x86-64. Don't create a common
* file for now, do that when implementing x86-64 support.*/ * file for now, do that when implementing x86-64 support.*/
static int __init __setup_host_supports_tls(void) { static int __init __setup_host_supports_tls(void)
{
check_host_supports_tls(&host_supports_tls, &host_gdt_entry_tls_min); check_host_supports_tls(&host_supports_tls, &host_gdt_entry_tls_min);
if (host_supports_tls) { if (host_supports_tls) {
printk(KERN_INFO "Host TLS support detected\n"); printk(KERN_INFO "Host TLS support detected\n");
......
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