]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] sh: task_thread_info()
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 12 Jan 2006 09:05:45 +0000 (01:05 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 12 Jan 2006 17:08:53 +0000 (09:08 -0800)
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>
arch/sh/kernel/process.c
arch/sh/kernel/smp.c

index 8c0060ce6c0289ebb4cdf7f3be2e86e32382b82c..35415d0be39e4ef553ac7f29dd3c21edfdd4c512 100644 (file)
@@ -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 */
index 59e49b18252c47ff49e3b4790c0c0a7ab8a9a883..62c7d1c0ad7bd2a0f1070c731e5f63a4156e8384 100644 (file)
@@ -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);