ARM: tegra: power: Fix build error on non-SMP systems
Scott Williams [Fri, 26 Aug 2011 01:39:56 +0000 (18:39 -0700)]
Can't use NR_CPUS on non-SMP systems. Just use the maximum.

Change-Id: Ie0d6289c3b8bdaada6335e4670c9f6b5ab2bcc93
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/49344
Reviewed-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R58abf556bf542b8cf0ee6dd0f091806235f49623

arch/arm/mach-tegra/sleep.S

index 68f0093..7b12dcf 100644 (file)
@@ -158,7 +158,7 @@ ENDPROC(tegra_cpu_resume_phys)
        .align  L1_CACHE_SHIFT
        .globl  tegra_phys_sleep_sp
 tegra_phys_sleep_sp:
-       .rept   CONFIG_NR_CPUS
+       .rept   4
        .long   0               @ preserve stack phys ptr here
        .endr
        .align  L1_CACHE_SHIFT  @ nothing else must be in this cache line