diff options
Diffstat (limited to 'arch/um/kernel/process.c')
-rw-r--r-- | arch/um/kernel/process.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index 570471218086..ae1942eeb994 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c | |||
@@ -251,7 +251,7 @@ void default_idle(void) | |||
251 | 251 | ||
252 | void cpu_idle(void) | 252 | void cpu_idle(void) |
253 | { | 253 | { |
254 | cpu_tasks[current_thread->cpu].pid = os_getpid(); | 254 | cpu_tasks[current_thread_info()->cpu].pid = os_getpid(); |
255 | default_idle(); | 255 | default_idle(); |
256 | } | 256 | } |
257 | 257 | ||
@@ -269,7 +269,7 @@ int user_context(unsigned long sp) | |||
269 | unsigned long stack; | 269 | unsigned long stack; |
270 | 270 | ||
271 | stack = sp & (PAGE_MASK << CONFIG_KERNEL_STACK_ORDER); | 271 | stack = sp & (PAGE_MASK << CONFIG_KERNEL_STACK_ORDER); |
272 | return stack != (unsigned long) current_thread; | 272 | return stack != (unsigned long) current_thread_info(); |
273 | } | 273 | } |
274 | 274 | ||
275 | extern exitcall_t __uml_exitcall_begin, __uml_exitcall_end; | 275 | extern exitcall_t __uml_exitcall_begin, __uml_exitcall_end; |
@@ -311,7 +311,7 @@ int strlen_user_proc(char __user *str) | |||
311 | int smp_sigio_handler(void) | 311 | int smp_sigio_handler(void) |
312 | { | 312 | { |
313 | #ifdef CONFIG_SMP | 313 | #ifdef CONFIG_SMP |
314 | int cpu = current_thread->cpu; | 314 | int cpu = current_thread_info()->cpu; |
315 | IPI_handler(cpu); | 315 | IPI_handler(cpu); |
316 | if (cpu != 0) | 316 | if (cpu != 0) |
317 | return 1; | 317 | return 1; |
@@ -321,7 +321,7 @@ int smp_sigio_handler(void) | |||
321 | 321 | ||
322 | int cpu(void) | 322 | int cpu(void) |
323 | { | 323 | { |
324 | return current_thread->cpu; | 324 | return current_thread_info()->cpu; |
325 | } | 325 | } |
326 | 326 | ||
327 | static atomic_t using_sysemu = ATOMIC_INIT(0); | 327 | static atomic_t using_sysemu = ATOMIC_INIT(0); |