Commit cafcfcaa authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

[PATCH] sh: 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 3cf0f4ec
...@@ -342,7 +342,7 @@ struct task_struct *__switch_to(struct task_struct *prev, struct task_struct *ne ...@@ -342,7 +342,7 @@ struct task_struct *__switch_to(struct task_struct *prev, struct task_struct *ne
*/ */
asm volatile("ldc %0, r7_bank" asm volatile("ldc %0, r7_bank"
: /* no output */ : /* no output */
: "r" (next->thread_info)); : "r" (task_thread_info(next)));
#ifdef CONFIG_MMU #ifdef CONFIG_MMU
/* If no tasks are using the UBC, we're done */ /* If no tasks are using the UBC, we're done */
......
...@@ -103,7 +103,7 @@ int __cpu_up(unsigned int cpu) ...@@ -103,7 +103,7 @@ int __cpu_up(unsigned int cpu)
if (IS_ERR(tsk)) if (IS_ERR(tsk))
panic("Failed forking idle task for cpu %d\n", cpu); panic("Failed forking idle task for cpu %d\n", cpu);
tsk->thread_info->cpu = cpu; task_thread_info(tsk)->cpu = cpu;
cpu_set(cpu, cpu_online_map); cpu_set(cpu, cpu_online_map);
......
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