ARM: suspend: fix CPU suspend code for !CONFIG_MMU configurations
authorWill Deacon <will.deacon@arm.com>
Thu, 23 Feb 2012 13:51:38 +0000 (13:51 +0000)
committerJonathan Austin <jonathan.austin@arm.com>
Fri, 7 Jun 2013 16:02:44 +0000 (17:02 +0100)
commitaa1aadc3305c4917c39f0291613a5ec81dd4c73b
tree6cb4cdb683aa041bc640b27df85eb9fa6663eab1
parentc4a1f032ed35d744e3d74b8aebe8d85f29aecd88
ARM: suspend: fix CPU suspend code for !CONFIG_MMU configurations

The ARM CPU suspend code can be selected even for a !CONFIG_MMU
configuration. The resulting kernel will not compile and, even if it did,
would access undefined co-processor registers when executing.

This patch fixes the v6 and v7 CPU suspend code for the nommu case.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Tested-by: Jonathan Austin <jonathan.austin@arm.com>
CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> (commit_signer:1/3=33%)
CC: Santosh Shilimkar <santosh.shilimkar@ti.com> (commit_signer:1/3=33%)
CC: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
arch/arm/kernel/suspend.c
arch/arm/mm/proc-v6.S
arch/arm/mm/proc-v7.S