From: Al Viro Date: Thu, 12 Jan 2006 09:05:45 +0000 (-0800) Subject: [PATCH] sh: task_thread_info() X-Git-Tag: v2.6.16-rc1~259 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cafcfcaa60dbb5bcccbbc1d0ad7d4bdeeb4d0cc8;p=platform%2Fkernel%2Flinux-3.10.git [PATCH] sh: task_thread_info() Signed-off-by: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c index 8c0060c..35415d0 100644 --- a/arch/sh/kernel/process.c +++ b/arch/sh/kernel/process.c @@ -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 */ diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c index 59e49b1..62c7d1c 100644 --- a/arch/sh/kernel/smp.c +++ b/arch/sh/kernel/smp.c @@ -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);