ARM: pm: no need to save/restore context ID register
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 28 Aug 2011 09:30:34 +0000 (10:30 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 20 Sep 2011 22:33:40 +0000 (23:33 +0100)
commit1aede681ac159884c77817d33230eed9185b6f6c
tree137427c7bc0e40151d43e79f92ec70b914171254
parentde8e71ca4f2e17329f6718ae88d5c8336cb249ee
ARM: pm: no need to save/restore context ID register

There is no need to save and restore the context ID register on ARMv6
and ARMv7 with a temporary page table as we write the context ID
register when we switch back to the real page tables for the thread.

Moreover, the temporary page tables do not contain any non-global
mappings, so the context ID value should not be used.  To be safe,
initialize the register to a reserved context ID value.

Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/proc-v6.S
arch/arm/mm/proc-v7.S