diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 01:05:45 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 09:08:53 -0800 |
commit | cafcfcaa60dbb5bcccbbc1d0ad7d4bdeeb4d0cc8 (patch) | |
tree | a3830f77e0d4de4393ce02fefe401a2edead8746 /arch | |
parent | 3cf0f4ece9f1680e54b154b1e38baaf6ace20a62 (diff) | |
download | linux-3.10-cafcfcaa60dbb5bcccbbc1d0ad7d4bdeeb4d0cc8.tar.gz linux-3.10-cafcfcaa60dbb5bcccbbc1d0ad7d4bdeeb4d0cc8.tar.bz2 linux-3.10-cafcfcaa60dbb5bcccbbc1d0ad7d4bdeeb4d0cc8.zip |
[PATCH] sh: task_thread_info()
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/smp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/process.c b/arch/sh/kernel/process.c index 8c0060ce6c0..35415d0be39 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 59e49b18252..62c7d1c0ad7 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); |