summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2013-11-19 17:30:38 +0000
committerRalf Baechle <ralf@linux-mips.org>2014-01-24 22:39:45 +0100
commita3056b1ca5db9103e079f3d8d9e386b3590b9250 (patch)
tree13fb10ae4d96e8045c5f572537cc89d106c354a8
parent8c0f8ab0e942da00a910d342c65a44656ef843cf (diff)
downloadlwn-a3056b1ca5db9103e079f3d8d9e386b3590b9250.tar.gz
lwn-a3056b1ca5db9103e079f3d8d9e386b3590b9250.zip
MIPS: replace open-coded init_dsp
There is already an init_dsp function which checks cpu_has_dsp & calls __init_dsp if it does. Make use of it instead of duplicating the same code. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Reviewed-by: Qais Yousef <qais.yousef@imgtec.com> Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/6148/
-rw-r--r--arch/mips/kernel/process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
index 747a6cfbb709..6ae540e133b2 100644
--- a/arch/mips/kernel/process.c
+++ b/arch/mips/kernel/process.c
@@ -64,8 +64,7 @@ void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp)
regs->cp0_status = status;
clear_used_math();
clear_fpu_owner();
- if (cpu_has_dsp)
- __init_dsp();
+ init_dsp();
regs->cp0_epc = pc;
regs->regs[29] = sp;
}