diff options
author | Matt Fleming <matt@console-pimps.org> | 2009-12-14 15:12:04 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-12-14 22:07:36 -0500 |
commit | 61cc7b0a172b047aa6d2c3e8b62bb1590f37e897 (patch) | |
tree | fb545a6d36c771c47afd7d3ecd57611b3bb47a7a /arch/sh/kernel/cpu/sh5 | |
parent | e76fe57447e88916954bdcab1c0d2c708ec3c943 (diff) |
sh: Fix up FPU build for SH5
After the recent FPU optimisation commit the signature of save_fpu()
changed. "regs" wasn't used in the implementation of save_fpu() anyway.
Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh5')
-rw-r--r-- | arch/sh/kernel/cpu/sh5/fpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/sh5/fpu.c b/arch/sh/kernel/cpu/sh5/fpu.c index dd4f51ffb50e..4648ccee6c4d 100644 --- a/arch/sh/kernel/cpu/sh5/fpu.c +++ b/arch/sh/kernel/cpu/sh5/fpu.c | |||
@@ -34,7 +34,7 @@ static union sh_fpu_union init_fpuregs = { | |||
34 | } | 34 | } |
35 | }; | 35 | }; |
36 | 36 | ||
37 | void save_fpu(struct task_struct *tsk, struct pt_regs *regs) | 37 | void save_fpu(struct task_struct *tsk) |
38 | { | 38 | { |
39 | asm volatile("fst.p %0, (0*8), fp0\n\t" | 39 | asm volatile("fst.p %0, (0*8), fp0\n\t" |
40 | "fst.p %0, (1*8), fp2\n\t" | 40 | "fst.p %0, (1*8), fp2\n\t" |
@@ -153,7 +153,7 @@ do_fpu_state_restore(unsigned long ex, struct pt_regs *regs) | |||
153 | enable_fpu(); | 153 | enable_fpu(); |
154 | if (last_task_used_math != NULL) | 154 | if (last_task_used_math != NULL) |
155 | /* Other processes fpu state, save away */ | 155 | /* Other processes fpu state, save away */ |
156 | save_fpu(last_task_used_math, regs); | 156 | save_fpu(last_task_used_math); |
157 | 157 | ||
158 | last_task_used_math = current; | 158 | last_task_used_math = current; |
159 | if (used_math()) { | 159 | if (used_math()) { |