]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Sun, 4 Sep 2011 10:09:35 +0000 (11:09 +0100)
commit53b4a30f955b98084fff406455dc7296fa4f5c06
tree7860d6ae449ac0ac34dfe39959d9ea8e59a00894
parent99264c1686cbb257ab2bb1215beacc4bd815849f
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>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/proc-v6.S
arch/arm/mm/proc-v7.S