summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/standby.S
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-01-04 22:43:36 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-01-26 15:07:56 +0000
commit533462fba545d271e087c3c632cf62ff04808e40 (patch)
tree74c54d673e7dbba98755a5e59ae792cecda94424 /arch/arm/mach-pxa/standby.S
parentf79299ca85f6f8c8817bc38494f7caa0a7043c3b (diff)
downloadop-kernel-dev-533462fba545d271e087c3c632cf62ff04808e40.zip
op-kernel-dev-533462fba545d271e087c3c632cf62ff04808e40.tar.gz
[ARM] pxa: omit PXA25x or PXA27x standby/sleep code as appropriate
There's no point building standby/sleep code for processors which aren't configured. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/standby.S')
-rw-r--r--arch/arm/mach-pxa/standby.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/standby.S b/arch/arm/mach-pxa/standby.S
index d774430..434a6ab 100644
--- a/arch/arm/mach-pxa/standby.S
+++ b/arch/arm/mach-pxa/standby.S
@@ -17,6 +17,7 @@
.text
+#ifdef CONFIG_PXA27x
ENTRY(pxa_cpu_standby)
ldr r0, =PSSR
mov r1, #(PSSR_PH | PSSR_STS)
@@ -29,3 +30,5 @@ ENTRY(pxa_cpu_standby)
1: mcr p14, 0, r2, c7, c0, 0 @ put the system into Standby
str r1, [r0] @ make sure PSSR_PH/STS are clear
mov pc, lr
+
+#endif
OpenPOWER on IntegriCloud