ARM: 8790/1: signal: always use __copy_to_user to save iwmmxt context
authorJulien Thierry <julien.thierry@arm.com>
Tue, 11 Sep 2018 09:12:05 +0000 (10:12 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 5 Oct 2018 09:51:15 +0000 (10:51 +0100)
commit73839798af7ebc6c8d0c9271ebbbc148700e521f
treea94c6eb00e0314eea36b34e05542b82a245f5eed
parent5ca451cf6ed04443774bbb7ee45332dafa42e99f
ARM: 8790/1: signal: always use __copy_to_user to save iwmmxt context

When setting a dummy iwmmxt context, create a local instance and
use __copy_to_user both cases whether iwmmxt is being used or not.
This has the benefit of disabling/enabling PAN once for the whole copy
intead of once per write.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/signal.c