linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mips: check for dsp presence only once before save/restore
@ 2019-09-13 12:02 Aurabindo Jayamohanan
  2019-10-07 17:59 ` Paul Burton
  0 siblings, 1 reply; 2+ messages in thread
From: Aurabindo Jayamohanan @ 2019-09-13 12:02 UTC (permalink / raw)
  To: ralf, paul.burton, jhogan, alexios.zavras, gregkh, armijn, allison, tglx
  Cc: linux-mips, linux-kernel

{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>
---
 arch/mips/power/cpu.c | 8 ++++----
 1 file 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)
-- 
2.23.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mips: check for dsp presence only once before save/restore
  2019-09-13 12:02 [PATCH] mips: check for dsp presence only once before save/restore Aurabindo Jayamohanan
@ 2019-10-07 17:59 ` Paul Burton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Burton @ 2019-10-07 17:59 UTC (permalink / raw)
  To: Aurabindo Jayamohanan
  Cc: ralf, Paul Burton, jhogan, alexios.zavras, gregkh, armijn,
	allison, tglx, linux-mips, linux-kernel, linux-mips

Hello,

Aurabindo Jayamohanan wrote:
> {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()

Applied to mips-next.

> commit 9662dd752c14
> https://git.kernel.org/mips/c/9662dd752c14
> 
> Signed-off-by: Aurabindo Jayamohanan <mail@aurabindo.in>
> Signed-off-by: Paul Burton <paul.burton@mips.com>

Thanks,
    Paul

[ This message was auto-generated; if you believe anything is incorrect
  then please email paul.burton@mips.com to report it. ]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-07 17:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-13 12:02 [PATCH] mips: check for dsp presence only once before save/restore Aurabindo Jayamohanan
2019-10-07 17:59 ` Paul Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).