diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/kernel/process_kern.c | 2 | ||||
-rw-r--r-- | arch/um/kernel/tt/process_kern.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/kernel/process_kern.c b/arch/um/kernel/process_kern.c index d2d3f256778c..7f13b85d2656 100644 --- a/arch/um/kernel/process_kern.c +++ b/arch/um/kernel/process_kern.c | |||
@@ -107,7 +107,7 @@ void set_current(void *t) | |||
107 | { | 107 | { |
108 | struct task_struct *task = t; | 108 | struct task_struct *task = t; |
109 | 109 | ||
110 | cpu_tasks[task->thread_info->cpu] = ((struct cpu_task) | 110 | cpu_tasks[task_thread_info(task)->cpu] = ((struct cpu_task) |
111 | { external_pid(task), task }); | 111 | { external_pid(task), task }); |
112 | } | 112 | } |
113 | 113 | ||
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); |