Commit ca9bc0bb authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] uml: task_thread_info()


Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 36483c6b
...@@ -107,7 +107,7 @@ void set_current(void *t) ...@@ -107,7 +107,7 @@ void set_current(void *t)
{ {
struct task_struct *task = t; struct task_struct *task = t;
cpu_tasks[task->thread_info->cpu] = ((struct cpu_task) cpu_tasks[task_thread_info(task)->cpu] = ((struct cpu_task)
{ external_pid(task), task }); { external_pid(task), task });
} }
......
...@@ -36,7 +36,7 @@ void switch_to_tt(void *prev, void *next) ...@@ -36,7 +36,7 @@ void switch_to_tt(void *prev, void *next)
from = prev; from = prev;
to = next; to = next;
cpu = from->thread_info->cpu; cpu = task_thread_info(from)->cpu;
if(cpu == 0) if(cpu == 0)
forward_interrupts(to->thread.mode.tt.extern_pid); forward_interrupts(to->thread.mode.tt.extern_pid);
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
...@@ -343,7 +343,7 @@ int do_proc_op(void *t, int proc_id) ...@@ -343,7 +343,7 @@ int do_proc_op(void *t, int proc_id)
pid = thread->request.u.exec.pid; pid = thread->request.u.exec.pid;
do_exec(thread->mode.tt.extern_pid, pid); do_exec(thread->mode.tt.extern_pid, pid);
thread->mode.tt.extern_pid = pid; thread->mode.tt.extern_pid = pid;
cpu_tasks[task->thread_info->cpu].pid = pid; cpu_tasks[task_thread_info(task)->cpu].pid = pid;
break; break;
case OP_FORK: case OP_FORK:
attach_process(thread->request.u.fork.pid); attach_process(thread->request.u.fork.pid);
......
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