[PATCH] sparc: 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 d562ef6a 308a792f

+9 -9
+2 -2
arch/sparc/kernel/process.c
··· 337 337 */ 338 338 unsigned long thread_saved_pc(struct task_struct *tsk) 339 339 { 340 - return tsk->thread_info->kpc; 340 + return task_thread_info(tsk)->kpc; 341 341 } 342 342 343 343 /* ··· 724 724 task->state == TASK_RUNNING) 725 725 goto out; 726 726 727 - fp = task->thread_info->ksp + bias; 727 + fp = task_thread_info(task)->ksp + bias; 728 728 do { 729 729 /* Bogus frame pointer? */ 730 730 if (fp < (task_base + sizeof(struct thread_info)) ||
+2 -2
arch/sparc/kernel/ptrace.c
··· 75 75 struct task_struct *tsk, long __user *addr) 76 76 { 77 77 struct pt_regs *cregs = tsk->thread.kregs; 78 - struct thread_info *t = tsk->thread_info; 78 + struct thread_info *t = task_thread_info(tsk); 79 79 int v; 80 80 81 81 if(offset >= 1024) ··· 170 170 struct task_struct *tsk) 171 171 { 172 172 struct pt_regs *cregs = tsk->thread.kregs; 173 - struct thread_info *t = tsk->thread_info; 173 + struct thread_info *t = task_thread_info(tsk); 174 174 unsigned long value = regs->u_regs[UREG_I3]; 175 175 176 176 if(offset >= 1024)
+1 -1
arch/sparc/kernel/sun4d_smp.c
··· 200 200 /* Cook up an idler for this guy. */ 201 201 p = fork_idle(i); 202 202 cpucount++; 203 - current_set[i] = p->thread_info; 203 + current_set[i] = task_thread_info(p); 204 204 for (no = 0; !cpu_find_by_instance(no, NULL, &mid) 205 205 && mid != i; no++) ; 206 206
+1 -1
arch/sparc/kernel/sun4m_smp.c
··· 173 173 /* Cook up an idler for this guy. */ 174 174 p = fork_idle(i); 175 175 cpucount++; 176 - current_set[i] = p->thread_info; 176 + current_set[i] = task_thread_info(p); 177 177 /* See trampoline.S for details... */ 178 178 entry += ((i-1) * 3); 179 179
+2 -2
arch/sparc/kernel/traps.c
··· 291 291 #ifndef CONFIG_SMP 292 292 if(!fpt) { 293 293 #else 294 - if(!(fpt->thread_info->flags & _TIF_USEDFPU)) { 294 + if(!(task_thread_info(fpt)->flags & _TIF_USEDFPU)) { 295 295 #endif 296 296 fpsave(&fake_regs[0], &fake_fsr, &fake_queue[0], &fake_depth); 297 297 regs->psr &= ~PSR_EF; ··· 334 334 /* nope, better SIGFPE the offending process... */ 335 335 336 336 #ifdef CONFIG_SMP 337 - fpt->thread_info->flags &= ~_TIF_USEDFPU; 337 + task_thread_info(fpt)->flags &= ~_TIF_USEDFPU; 338 338 #endif 339 339 if(psr & PSR_PS) { 340 340 /* The first fsr store/load we tried trapped,
+1 -1
include/asm-sparc/system.h
··· 155 155 "here:\n" \ 156 156 : "=&r" (last) \ 157 157 : "r" (&(current_set[hard_smp_processor_id()])), \ 158 - "r" ((next)->thread_info), \ 158 + "r" (task_thread_info(next)), \ 159 159 "i" (TI_KPSR), \ 160 160 "i" (TI_KSP), \ 161 161 "i" (TI_TASK) \