diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:05:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:53 -0500 |
commit | ca9bc0bb2d1c7afdd34ec79b3de4d16a8e0225e8 (patch) | |
tree | 0233d66a5b61716f676ef78e45bb71e976668cd2 /arch/um/kernel/tt | |
parent | 36483c6b5e6cc8f29fbe5203caa7e0b836802747 (diff) |
[PATCH] uml: task_thread_info()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/kernel/tt')
-rw-r--r-- | arch/um/kernel/tt/process_kern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/tt/process_kern.c b/arch/um/kernel/tt/process_kern.c index 14d4622a5fb8..1f7dec87b6c1 100644 --- a/arch/um/kernel/tt/process_kern.c +++ b/arch/um/kernel/tt/process_kern.c | |||
@@ -36,7 +36,7 @@ void switch_to_tt(void *prev, void *next) | |||
36 | from = prev; | 36 | from = prev; |
37 | to = next; | 37 | to = next; |
38 | 38 | ||
39 | cpu = from->thread_info->cpu; | 39 | cpu = task_thread_info(from)->cpu; |
40 | if(cpu == 0) | 40 | if(cpu == 0) |
41 | forward_interrupts(to->thread.mode.tt.extern_pid); | 41 | forward_interrupts(to->thread.mode.tt.extern_pid); |
42 | #ifdef CONFIG_SMP | 42 | #ifdef CONFIG_SMP |
@@ -343,7 +343,7 @@ int do_proc_op(void *t, int proc_id) | |||
343 | pid = thread->request.u.exec.pid; | 343 | pid = thread->request.u.exec.pid; |
344 | do_exec(thread->mode.tt.extern_pid, pid); | 344 | do_exec(thread->mode.tt.extern_pid, pid); |
345 | thread->mode.tt.extern_pid = pid; | 345 | thread->mode.tt.extern_pid = pid; |
346 | cpu_tasks[task->thread_info->cpu].pid = pid; | 346 | cpu_tasks[task_thread_info(task)->cpu].pid = pid; |
347 | break; | 347 | break; |
348 | case OP_FORK: | 348 | case OP_FORK: |
349 | attach_process(thread->request.u.fork.pid); | 349 | attach_process(thread->request.u.fork.pid); |