ARM: Avoid writing to control register on every exception
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 28 Aug 2014 12:08:14 +0000 (13:08 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 26 Sep 2014 13:39:54 +0000 (14:39 +0100)
commit195b58add463f697fb802ed55e26759094d40a54
treed3523c21a3bb610a87672356770a83c1e3c0ca8d
parent8b521cb2947d8811b4cf7fc6a7a6ebde35218243
ARM: Avoid writing to control register on every exception

If we are not changing the control register value, avoid writing to it.
Writes to the control register can be very expensive, taking around a
hundred cycles or so.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-armv.S
arch/arm/kernel/entry-common.S
arch/arm/kernel/entry-header.S