diff options
author | Aurabindo Jayamohanan <[email protected]> | 2019-09-13 12:02:17 +0000 |
---|---|---|
committer | Paul Burton <[email protected]> | 2019-10-07 10:58:53 -0700 |
commit | 9662dd752c149a6d50f7b731263c09254c403b21 (patch) | |
tree | 040d3d384e49ebd036d7596ebdbff89f0e5280d4 /arch/mips/power/cpu.c | |
parent | 5dc76a96e95ae041c1d8e52714bd77576b35919b (diff) |
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 <[email protected]>
Signed-off-by: Paul Burton <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Diffstat (limited to 'arch/mips/power/cpu.c')
-rw-r--r-- | arch/mips/power/cpu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/power/cpu.c b/arch/mips/power/cpu.c index 3340a5530de3..a15e29dfc7b3 100644 --- a/arch/mips/power/cpu.c +++ b/arch/mips/power/cpu.c @@ -19,8 +19,8 @@ void save_processor_state(void) if (is_fpu_owner()) save_fp(current); - if (cpu_has_dsp) - save_dsp(current); + + save_dsp(current); } void restore_processor_state(void) @@ -29,8 +29,8 @@ void restore_processor_state(void) if (is_fpu_owner()) restore_fp(current); - if (cpu_has_dsp) - restore_dsp(current); + + restore_dsp(current); } int pfn_is_nosave(unsigned long pfn) |