diff options
Diffstat (limited to 'arch/um/sys-i386/tls.c')
-rw-r--r-- | arch/um/sys-i386/tls.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/um/sys-i386/tls.c b/arch/um/sys-i386/tls.c index fea8e5e15cc4..0340b96d101b 100644 --- a/arch/um/sys-i386/tls.c +++ b/arch/um/sys-i386/tls.c | |||
@@ -18,10 +18,7 @@ | |||
18 | #include "mode_kern.h" | 18 | #include "mode_kern.h" |
19 | #include "os.h" | 19 | #include "os.h" |
20 | #include "mode.h" | 20 | #include "mode.h" |
21 | |||
22 | #ifdef CONFIG_MODE_SKAS | ||
23 | #include "skas.h" | 21 | #include "skas.h" |
24 | #endif | ||
25 | 22 | ||
26 | /* | 23 | /* |
27 | * If needed we can detect when it's uninitialized. | 24 | * If needed we can detect when it's uninitialized. |
@@ -31,7 +28,6 @@ | |||
31 | static int host_supports_tls = -1; | 28 | static int host_supports_tls = -1; |
32 | int host_gdt_entry_tls_min; | 29 | int host_gdt_entry_tls_min; |
33 | 30 | ||
34 | #ifdef CONFIG_MODE_SKAS | ||
35 | int do_set_thread_area_skas(struct user_desc *info) | 31 | int do_set_thread_area_skas(struct user_desc *info) |
36 | { | 32 | { |
37 | int ret; | 33 | int ret; |
@@ -53,7 +49,6 @@ int do_get_thread_area_skas(struct user_desc *info) | |||
53 | put_cpu(); | 49 | put_cpu(); |
54 | return ret; | 50 | return ret; |
55 | } | 51 | } |
56 | #endif | ||
57 | 52 | ||
58 | /* | 53 | /* |
59 | * sys_get_thread_area: get a yet unused TLS descriptor index. | 54 | * sys_get_thread_area: get a yet unused TLS descriptor index. |
@@ -187,17 +182,6 @@ int arch_switch_tls_skas(struct task_struct *from, struct task_struct *to) | |||
187 | return 0; | 182 | return 0; |
188 | } | 183 | } |
189 | 184 | ||
190 | int arch_switch_tls_tt(struct task_struct *from, struct task_struct *to) | ||
191 | { | ||
192 | if (!host_supports_tls) | ||
193 | return 0; | ||
194 | |||
195 | if (needs_TLS_update(to)) | ||
196 | return load_TLS(0, to); | ||
197 | |||
198 | return 0; | ||
199 | } | ||
200 | |||
201 | static int set_tls_entry(struct task_struct* task, struct user_desc *info, | 185 | static int set_tls_entry(struct task_struct* task, struct user_desc *info, |
202 | int idx, int flushed) | 186 | int idx, int flushed) |
203 | { | 187 | { |