Skip to content

Commit

Permalink
[PATCH] sh: task_thread_info()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent 3cf0f4e commit cafcfca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/sh/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ struct task_struct *__switch_to(struct task_struct *prev, struct task_struct *ne
*/
asm volatile("ldc %0, r7_bank"
: /* no output */
: "r" (next->thread_info));
: "r" (task_thread_info(next)));

#ifdef CONFIG_MMU
/* If no tasks are using the UBC, we're done */
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int __cpu_up(unsigned int cpu)
if (IS_ERR(tsk))
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);

Expand Down

0 comments on commit cafcfca

Please sign in to comment.