Skip to contentSkip to conversation

uml: task_thread_info()

PATCH In review Al Viro 1 participant 1 message Jan 3, 2006

Subsystems (2)
lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 19/50 uml: task_thread_info()

References: <[email protected]>
In-Reply-To: <[email protected]>

---

 arch/um/kernel/process_kern.c    |    2 +-
 arch/um/kernel/tt/process_kern.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

515b909dadbe1dcd9253970a711bf7a54ee78bd8

arch/um/kernel/process_kern.c +1 -1
index 34b54a3..791ea3f 100644
@@ -108,7 +108,7 @@ void set_current(void *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 });
 }
 
arch/um/kernel/tt/process_kern.c +2 -2
index cfaa373..857f355 100644
@@ -37,7 +37,7 @@ void switch_to_tt(void *prev, void *next
 	from = prev;
 	to = next;
 
-	cpu = from->thread_info->cpu;
+	cpu = task_thread_info(from)->cpu;
 	if(cpu == 0)
 		forward_interrupts(to->thread.mode.tt.extern_pid);
 #ifdef CONFIG_SMP
@@ -344,7 +344,7 @@ int do_proc_op(void *t, int proc_id)
 		pid = thread->request.u.exec.pid;
 		do_exec(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;
 	case OP_FORK:
 		attach_process(thread->request.u.fork.pid);
Signature · 1 line
0.99.9.GIT