MIPS: replace open-coded init_dsp
authorPaul Burton <paul.burton@imgtec.com>
Tue, 19 Nov 2013 17:30:38 +0000 (17:30 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 24 Jan 2014 21:39:45 +0000 (22:39 +0100)
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/

arch/mips/kernel/process.c

index 747a6cfbb709791420eda00018e2020265bd98b5..6ae540e133b2aa592a029a131f541a6619aaaceb 100644 (file)
@@ -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;
 }