]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite67eeb763b03d17b542404f114358e87dd103a67
tree906c836879d4994ca6abd5e87a5f175d81020697
parentf75536fd7d1e8cc06c4aa98c89ce45221e678b82
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