arm64: read enable-method for CPU0
authorMark Rutland <mark.rutland@arm.com>
Thu, 24 Oct 2013 19:30:17 +0000 (20:30 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 11 Dec 2013 21:12:01 +0000 (21:12 +0000)
commit5ad709f5d9cb351caf1be770d03f420bd88bf248
tree6bdbed50808541a91eee7d4b718723f87d078d9f
parent92201a63ef9b5a692a3c273ea8964aa3ad83a8f7
arm64: read enable-method for CPU0

With the advent of CPU_HOTPLUG, the enable-method property for CPU0 may
tells us something useful (i.e. how to hotplug it back on), so we must
read it along with all the enable-method for all the other CPUs.  Even
on UP the enable-method may tell us useful information (e.g. if a core
has some mechanism that might be usable for cpuidle), so we should
always read it.

This patch factors out the reading of the enable method, and ensures
that CPU0's enable method is read regardless of whether the kernel is
built with SMP support.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit e8765b265a69c83504afc6901d6e137b1811d1f0)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/cpu_ops.h
arch/arm64/kernel/cpu_ops.c
arch/arm64/kernel/setup.c
arch/arm64/kernel/smp.c