···157 * The TLS is in $mof beacuse it is the 5th argument to sys_clone.158 */159 if (p->mm && (clone_flags & CLONE_SETTLS)) {160- p->thread_info->tls = regs->mof;161 }162163 /* Put the switch stack right below the pt_regs. */
···157 * The TLS is in $mof beacuse it is the 5th argument to sys_clone.158 */159 if (p->mm && (clone_flags & CLONE_SETTLS)) {160+ task_thread_info(p)->tls = regs->mof;161 }162163 /* Put the switch stack right below the pt_regs. */
+2-2
arch/cris/arch-v32/kernel/smp.c
···113 if (IS_ERR(idle))114 panic("SMP: fork failed for CPU:%d", cpuid);115116- idle->thread_info->cpu = cpuid;117118 /* Information to the CPU that is about to boot */119- smp_init_current_idle_thread = idle->thread_info;120 cpu_now_booting = cpuid;121122 /* Wait for CPU to come online */
···113 if (IS_ERR(idle))114 panic("SMP: fork failed for CPU:%d", cpuid);115116+ task_thread_info(idle)->cpu = cpuid;117118 /* Information to the CPU that is about to boot */119+ smp_init_current_idle_thread = task_thread_info(idle);120 cpu_now_booting = cpuid;121122 /* Wait for CPU to come online */
+2-2
arch/cris/arch-v32/mm/tlb.c
···198 per_cpu(current_pgd, cpu) = next->pgd;199200 /* Switch context in the MMU. */201- if (tsk && tsk->thread_info)202 {203- SPEC_REG_WR(SPEC_REG_PID, next->context.page_id | tsk->thread_info->tls);204 }205 else206 {
···198 per_cpu(current_pgd, cpu) = next->pgd;199200 /* Switch context in the MMU. */201+ if (tsk && task_thread_info(tsk))202 {203+ SPEC_REG_WR(SPEC_REG_PID, next->context.page_id | task_thread_info(tsk)->tls);204 }205 else206 {