diff options
Diffstat (limited to 'arch/sparc/kernel')
| -rw-r--r-- | arch/sparc/kernel/process_32.c | 12 | ||||
| -rw-r--r-- | arch/sparc/kernel/process_64.c | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/arch/sparc/kernel/process_32.c b/arch/sparc/kernel/process_32.c index c5113c7ce2fd..b7780a5bef11 100644 --- a/arch/sparc/kernel/process_32.c +++ b/arch/sparc/kernel/process_32.c | |||
| @@ -184,21 +184,21 @@ unsigned long thread_saved_pc(struct task_struct *tsk) | |||
| 184 | /* | 184 | /* |
| 185 | * Free current thread data structures etc.. | 185 | * Free current thread data structures etc.. |
| 186 | */ | 186 | */ |
| 187 | void exit_thread(void) | 187 | void exit_thread(struct task_struct *tsk) |
| 188 | { | 188 | { |
| 189 | #ifndef CONFIG_SMP | 189 | #ifndef CONFIG_SMP |
| 190 | if(last_task_used_math == current) { | 190 | if (last_task_used_math == tsk) { |
| 191 | #else | 191 | #else |
| 192 | if (test_thread_flag(TIF_USEDFPU)) { | 192 | if (test_ti_thread_flag(task_thread_info(tsk), TIF_USEDFPU)) { |
| 193 | #endif | 193 | #endif |
| 194 | /* Keep process from leaving FPU in a bogon state. */ | 194 | /* Keep process from leaving FPU in a bogon state. */ |
| 195 | put_psr(get_psr() | PSR_EF); | 195 | put_psr(get_psr() | PSR_EF); |
| 196 | fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, | 196 | fpsave(&tsk->thread.float_regs[0], &tsk->thread.fsr, |
| 197 | ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); | 197 | &tsk->thread.fpqueue[0], &tsk->thread.fpqdepth); |
| 198 | #ifndef CONFIG_SMP | 198 | #ifndef CONFIG_SMP |
| 199 | last_task_used_math = NULL; | 199 | last_task_used_math = NULL; |
| 200 | #else | 200 | #else |
| 201 | clear_thread_flag(TIF_USEDFPU); | 201 | clear_ti_thread_flag(task_thread_info(tsk), TIF_USEDFPU); |
| 202 | #endif | 202 | #endif |
| 203 | } | 203 | } |
| 204 | } | 204 | } |
diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c index c16ef1af1843..fa14402b33f9 100644 --- a/arch/sparc/kernel/process_64.c +++ b/arch/sparc/kernel/process_64.c | |||
| @@ -417,9 +417,9 @@ unsigned long thread_saved_pc(struct task_struct *tsk) | |||
| 417 | } | 417 | } |
| 418 | 418 | ||
| 419 | /* Free current thread data structures etc.. */ | 419 | /* Free current thread data structures etc.. */ |
| 420 | void exit_thread(void) | 420 | void exit_thread(struct task_struct *tsk) |
| 421 | { | 421 | { |
| 422 | struct thread_info *t = current_thread_info(); | 422 | struct thread_info *t = task_thread_info(tsk); |
| 423 | 423 | ||
| 424 | if (t->utraps) { | 424 | if (t->utraps) { |
| 425 | if (t->utraps[0] < 2) | 425 | if (t->utraps[0] < 2) |
