Re: [PATCH 14/24] msm: add hotplug stub functions

From: Daniel Walker
Date: Thu Sep 02 2010 - 18:37:03 EST


On Thu, 2010-09-02 at 18:12 +0100, Russell King - ARM Linux wrote:
> On Thu, Sep 02, 2010 at 09:49:37AM -0700, Daniel Walker wrote:
> > On Thu, 2010-09-02 at 12:11 +0100, Russell King - ARM Linux wrote:
> > > On Tue, Aug 24, 2010 at 09:57:43PM -0700, Jeff Ohlstein wrote:
> > > > From: Daniel Walker <dwalker@xxxxxxxxxxxxxx>
> > > >
> > > > We don't actually do anything for hotplug yet. This just lets
> > > > everything compile, even when hotplug is enabled.
> > >
> > > And the point of that is? If you're not supporting hotplug CPU yet, then
> > > don't allow it to be enabled.
> >
> > How do we do that? I didn't see a easy way to prevent it.
>
>
> config HOTPLUG_CPU
> bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
> depends on SMP && HOTPLUG && EXPERIMENTAL
> + depends on !ARCH_MSM
> --

If no others use it .. We can do this to fix them all. What do you
think?

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index d4d9f55..6d8cf39 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1163,9 +1163,12 @@ config NR_CPUS
depends on SMP
default "4"

+config HAS_HOTPLUG_CPU
+ bool
+
config HOTPLUG_CPU
bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
- depends on SMP && HOTPLUG && EXPERIMENTAL
+ depends on SMP && HOTPLUG && EXPERIMENTAL && HAS_HOTPLUG_CPU
help
Say Y here to experiment with turning CPUs off and on. CPUs
can be controlled through /sys/devices/system/cpu.
diff --git a/arch/arm/mach-realview/Kconfig b/arch/arm/mach-realview/Kconfig
index b4575ae..8b5c339 100644
--- a/arch/arm/mach-realview/Kconfig
+++ b/arch/arm/mach-realview/Kconfig
@@ -11,6 +11,7 @@ config REALVIEW_EB_A9MP
bool "Support Multicore Cortex-A9"
depends on MACH_REALVIEW_EB
select CPU_V7
+ select HAS_HOTPLUG_CPU
help
Enable support for the Cortex-A9MPCore tile on the Realview platform.

@@ -19,6 +20,7 @@ config REALVIEW_EB_ARM11MP
depends on MACH_REALVIEW_EB
select CPU_V6
select ARCH_HAS_BARRIERS if SMP
+ select HAS_HOTPLUG_CPU
help
Enable support for the ARM11MPCore tile on the Realview platform.

@@ -37,6 +39,7 @@ config MACH_REALVIEW_PB11MP
select ARM_GIC
select HAVE_PATA_PLATFORM
select ARCH_HAS_BARRIERS if SMP
+ select HAS_HOTPLUG_CPU
help
Include support for the ARM(R) RealView MPCore Platform Baseboard.
PB11MPCore is a platform with an on-board ARM11MPCore and has
@@ -74,6 +77,7 @@ config MACH_REALVIEW_PBX
select HAVE_PATA_PLATFORM
select ARCH_SPARSEMEM_ENABLE if CPU_V7 && !REALVIEW_HIGH_PHYS_OFFSET
select ZONE_DMA if SPARSEMEM
+ select HAS_HOTPLUG_CPU
help
Include support for the ARM(R) RealView PBX platform.




--

Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/