arm64: read enable-method for CPU0
authorMark Rutland <mark.rutland@arm.com>
Thu, 24 Oct 2013 19:30:17 +0000 (20:30 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 25 Oct 2013 10:33:20 +0000 (11:33 +0100)
commite8765b265a69c83504afc6901d6e137b1811d1f0
tree906c836879d4994ca6abd5e87a5f175d81020697
parent652af899799354049b273af897b798b8f03fdd88
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>
arch/arm64/include/asm/cpu_ops.h
arch/arm64/kernel/cpu_ops.c
arch/arm64/kernel/setup.c
arch/arm64/kernel/smp.c