forked from Minki/linux
mips: check for dsp presence only once before save/restore
{save,restore}_dsp() internally checks if the cpu has dsp support. Therefore, explicit check is not required before calling them in {save,restore}_processor_state() Signed-off-by: Aurabindo Jayamohanan <mail@aurabindo.in> Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: ralf@linux-mips.org Cc: jhogan@kernel.org Cc: alexios.zavras@intel.com Cc: gregkh@linuxfoundation.org Cc: armijn@tjaldur.nl Cc: allison@lohutok.net Cc: tglx@linutronix.de Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org
This commit is contained in:
parent
5dc76a96e9
commit
9662dd752c
@ -19,7 +19,7 @@ void save_processor_state(void)
|
||||
|
||||
if (is_fpu_owner())
|
||||
save_fp(current);
|
||||
if (cpu_has_dsp)
|
||||
|
||||
save_dsp(current);
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ void restore_processor_state(void)
|
||||
|
||||
if (is_fpu_owner())
|
||||
restore_fp(current);
|
||||
if (cpu_has_dsp)
|
||||
|
||||
restore_dsp(current);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user