msm: acpuclock-krait: Support booting with fewer CPUs
Allow booting with only a subset of the CPUs enabled by default. The
others can potentially be added later with hotplug, at which point
the voltage, bus and clock requests for them will be applied.
Change-Id: Iff0758e6d3c79435c2c144da70079c8d60626224
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/acpuclock-krait.h b/arch/arm/mach-msm/acpuclock-krait.h
index 7c1d2b6..f121548 100644
--- a/arch/arm/mach-msm/acpuclock-krait.h
+++ b/arch/arm/mach-msm/acpuclock-krait.h
@@ -189,6 +189,7 @@
* @cur_speed: Pointer to currently-set speed.
* @l2_vote: L2 performance level vote associate with the current CPU speed.
* @vreg: Array of voltage regulators needed by the scalable.
+ * @initialized: Flag set to true when per_cpu_init() has been called.
*/
struct scalable {
const phys_addr_t hfpll_phys_base;
@@ -200,6 +201,7 @@
const struct core_speed *cur_speed;
const struct l2_level *l2_vote;
struct vreg vreg[NUM_VREG];
+ bool initialized;
};
/**