···157157 * The TLS is in $mof beacuse it is the 5th argument to sys_clone.158158 */159159 if (p->mm && (clone_flags & CLONE_SETTLS)) {160160- p->thread_info->tls = regs->mof;160160+ task_thread_info(p)->tls = regs->mof;161161 }162162163163 /* Put the switch stack right below the pt_regs. */
+2-2
arch/cris/arch-v32/kernel/smp.c
···113113 if (IS_ERR(idle))114114 panic("SMP: fork failed for CPU:%d", cpuid);115115116116- idle->thread_info->cpu = cpuid;116116+ task_thread_info(idle)->cpu = cpuid;117117118118 /* Information to the CPU that is about to boot */119119- smp_init_current_idle_thread = idle->thread_info;119119+ smp_init_current_idle_thread = task_thread_info(idle);120120 cpu_now_booting = cpuid;121121122122 /* Wait for CPU to come online */
+2-2
arch/cris/arch-v32/mm/tlb.c
···198198 per_cpu(current_pgd, cpu) = next->pgd;199199200200 /* Switch context in the MMU. */201201- if (tsk && tsk->thread_info)201201+ if (tsk && task_thread_info(tsk))202202 {203203- SPEC_REG_WR(SPEC_REG_PID, next->context.page_id | tsk->thread_info->tls);203203+ SPEC_REG_WR(SPEC_REG_PID, next->context.page_id | task_thread_info(tsk)->tls);204204 }205205 else206206 {