ARM64: simplify cpu_read_bootcpu_ops using OF/DT helper
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Wed, 30 Oct 2013 13:47:16 +0000 (13:47 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 30 Oct 2013 17:54:49 +0000 (17:54 +0000)
commit248f0e7f5f0012fb9c1954e582196aa7f32a0c81
treef33927d4fc1540baa0a8e0c17a25ff676e6cff52
parent6e15d0e04bfeaa5662a289ee915273307326e45a
ARM64: simplify cpu_read_bootcpu_ops using OF/DT helper

Once the cpu_logical_map for any logical cpu is populated with the
corresponding physical identifier(i.e. mpidr), it's device node can
be retrieved using the DT helper 'of_get_cpu_node'. Currently the
device tree parsing code to get boot cpu node is duplicated in
'cpu_read_bootcpu_ops'.

This patch replaces the code parsing the device tree for the boot
cpu with of_get_cpu_node.

Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/cpu_ops.c