aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2018-08-27 09:43:01 -0500
committerRob Herring <[email protected]>2018-09-28 14:25:58 -0500
commitde76e70a8d4ea4518ec46dff2f92e2970af1d512 (patch)
tree9ef6a97a031fc5174354f51894633379461483d1
parent5af5d40c401581399f2b6a646a83ad0f31015eb6 (diff)
arm64: use for_each_of_cpu_node iterator
Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This has the side effect of defaulting to iterating using "cpu" node names in preference to the deprecated (for FDT) device_type == "cpu". Cc: Catalin Marinas <[email protected]> Cc: [email protected] Acked-by: Will Deacon <[email protected]> Signed-off-by: Rob Herring <[email protected]>
-rw-r--r--arch/arm64/kernel/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
index 25fcd22a4bb2..96b8f2f51ab2 100644
--- a/arch/arm64/kernel/smp.c
+++ b/arch/arm64/kernel/smp.c
@@ -602,7 +602,7 @@ static void __init of_parse_and_init_cpus(void)
{
struct device_node *dn;
- for_each_node_by_type(dn, "cpu") {
+ for_each_of_cpu_node(dn) {
u64 hwid = of_get_cpu_mpidr(dn);
if (hwid == INVALID_HWID)