Lines Matching refs:new_thread
1227 struct thread_struct *new_thread) in restore_sprs() argument
1231 old_thread->vrsave != new_thread->vrsave) in restore_sprs()
1232 mtspr(SPRN_VRSAVE, new_thread->vrsave); in restore_sprs()
1236 old_thread->spefscr != new_thread->spefscr) in restore_sprs()
1237 mtspr(SPRN_SPEFSCR, new_thread->spefscr); in restore_sprs()
1242 if (new_thread->dscr_inherit) in restore_sprs()
1243 dscr = new_thread->dscr; in restore_sprs()
1250 if (old_thread->bescr != new_thread->bescr) in restore_sprs()
1251 mtspr(SPRN_BESCR, new_thread->bescr); in restore_sprs()
1252 if (old_thread->ebbhr != new_thread->ebbhr) in restore_sprs()
1253 mtspr(SPRN_EBBHR, new_thread->ebbhr); in restore_sprs()
1254 if (old_thread->ebbrr != new_thread->ebbrr) in restore_sprs()
1255 mtspr(SPRN_EBBRR, new_thread->ebbrr); in restore_sprs()
1257 if (old_thread->fscr != new_thread->fscr) in restore_sprs()
1258 mtspr(SPRN_FSCR, new_thread->fscr); in restore_sprs()
1260 if (old_thread->tar != new_thread->tar) in restore_sprs()
1261 mtspr(SPRN_TAR, new_thread->tar); in restore_sprs()
1265 old_thread->tidr != new_thread->tidr) in restore_sprs()
1266 mtspr(SPRN_TIDR, new_thread->tidr); in restore_sprs()
1269 old_thread->hashkeyr != new_thread->hashkeyr) in restore_sprs()
1270 mtspr(SPRN_HASHKEYR, new_thread->hashkeyr); in restore_sprs()
1273 old_thread->dexcr != new_thread->dexcr) in restore_sprs()
1274 mtspr(SPRN_DEXCR, new_thread->dexcr); in restore_sprs()
1282 struct thread_struct *new_thread, *old_thread; in __switch_to() local
1288 new_thread = &new->thread; in __switch_to()
1355 restore_sprs(old_thread, new_thread); in __switch_to()
1362 last = _switch(old_thread, new_thread); in __switch_to()