Skip to content

Commit b3bf289

Browse files
committed
ARM: OMAP2+: Fix build with CONFIG_SMP and CONFIG_PM is not set
I found one more make randconfig build error with the recent SMP kexec changes. We need the mpuss now always available early. Fixes: 0573b95 ("ARM: OMAP4+: Prevent CPU1 related hang with kexec") Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 44e7475 commit b3bf289

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

arch/arm/mach-omap2/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,16 @@ obj-$(CONFIG_ARCH_OMAP4) += opp4xxx_data.o
7878
endif
7979

8080
# Power Management
81+
omap-4-5-pm-common = omap-mpuss-lowpower.o
82+
obj-$(CONFIG_ARCH_OMAP4) += $(omap-4-5-pm-common)
83+
obj-$(CONFIG_ARCH_OMAP5) += $(omap-4-5-pm-common)
8184
obj-$(CONFIG_OMAP_PM_NOOP) += omap-pm-noop.o
8285

8386
ifeq ($(CONFIG_PM),y)
8487
obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o
8588
obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o
8689
obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o
87-
omap-4-5-pm-common = pm44xx.o omap-mpuss-lowpower.o
90+
omap-4-5-pm-common += pm44xx.o
8891
obj-$(CONFIG_ARCH_OMAP4) += $(omap-4-5-pm-common)
8992
obj-$(CONFIG_SOC_OMAP5) += $(omap-4-5-pm-common)
9093
obj-$(CONFIG_SOC_DRA7XX) += $(omap-4-5-pm-common)

arch/arm/mach-omap2/omap-mpuss-lowpower.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
static void __iomem *sar_base;
6666

67-
#ifdef CONFIG_SMP
67+
#if defined(CONFIG_PM) && defined(CONFIG_SMP)
6868

6969
struct omap4_cpu_pm_info {
7070
struct powerdomain *pwrdm;

0 commit comments

Comments
 (0)