[PATCH] arm26: 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>

authored by Al Viro and committed by Linus Torvalds 697102cd 32d39a93

+6 -6
+1 -1
arch/arm26/kernel/process.c
··· 277 277 copy_thread(int nr, unsigned long clone_flags, unsigned long stack_start, 278 278 unsigned long unused, struct task_struct *p, struct pt_regs *regs) 279 279 { 280 - struct thread_info *thread = p->thread_info; 280 + struct thread_info *thread = task_thread_info(p); 281 281 struct pt_regs *childregs; 282 282 283 283 childregs = __get_user_regs(thread);
+2 -2
arch/arm26/kernel/ptrace.c
··· 532 532 */ 533 533 static int ptrace_getfpregs(struct task_struct *tsk, void *ufp) 534 534 { 535 - return copy_to_user(ufp, &tsk->thread_info->fpstate, 535 + return copy_to_user(ufp, &task_thread_info(tsk)->fpstate, 536 536 sizeof(struct user_fp)) ? -EFAULT : 0; 537 537 } 538 538 ··· 542 542 static int ptrace_setfpregs(struct task_struct *tsk, void *ufp) 543 543 { 544 544 set_stopped_child_used_math(tsk); 545 - return copy_from_user(&tsk->thread_info->fpstate, ufp, 545 + return copy_from_user(&task_threas_info(tsk)->fpstate, ufp, 546 546 sizeof(struct user_fp)) ? -EFAULT : 0; 547 547 } 548 548
+1 -1
include/asm-arm26/system.h
··· 111 111 112 112 #define switch_to(prev,next,last) \ 113 113 do { \ 114 - last = __switch_to(prev,prev->thread_info,next->thread_info); \ 114 + last = __switch_to(prev,task_thread_info(prev),task_thread_info(next)); \ 115 115 } while (0) 116 116 117 117 /*
+2 -2
include/asm-arm26/thread_info.h
··· 91 91 #define put_thread_info(ti) put_task_struct((ti)->task) 92 92 93 93 #define thread_saved_pc(tsk) \ 94 - ((unsigned long)(pc_pointer((tsk)->thread_info->cpu_context.pc))) 94 + ((unsigned long)(pc_pointer(task_thread_info(tsk)->cpu_context.pc))) 95 95 #define thread_saved_fp(tsk) \ 96 - ((unsigned long)((tsk)->thread_info->cpu_context.fp)) 96 + ((unsigned long)(task_thread_info(tsk)->cpu_context.fp)) 97 97 98 98 #else /* !__ASSEMBLY__ */ 99 99