diff options
Diffstat (limited to 'arch/sh/kernel/process_64.c')
| -rw-r--r-- | arch/sh/kernel/process_64.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c index e2062e643341..9d3e9916555d 100644 --- a/arch/sh/kernel/process_64.c +++ b/arch/sh/kernel/process_64.c | |||
| @@ -288,7 +288,7 @@ void show_regs(struct pt_regs *regs) | |||
| 288 | /* | 288 | /* |
| 289 | * Free current thread data structures etc.. | 289 | * Free current thread data structures etc.. |
| 290 | */ | 290 | */ |
| 291 | void exit_thread(void) | 291 | void exit_thread(struct task_struct *tsk) |
| 292 | { | 292 | { |
| 293 | /* | 293 | /* |
| 294 | * See arch/sparc/kernel/process.c for the precedent for doing | 294 | * See arch/sparc/kernel/process.c for the precedent for doing |
| @@ -307,9 +307,8 @@ void exit_thread(void) | |||
| 307 | * which it would get safely nulled. | 307 | * which it would get safely nulled. |
| 308 | */ | 308 | */ |
| 309 | #ifdef CONFIG_SH_FPU | 309 | #ifdef CONFIG_SH_FPU |
| 310 | if (last_task_used_math == current) { | 310 | if (last_task_used_math == tsk) |
| 311 | last_task_used_math = NULL; | 311 | last_task_used_math = NULL; |
| 312 | } | ||
| 313 | #endif | 312 | #endif |
| 314 | } | 313 | } |
| 315 | 314 | ||
