diff options
author | Rob Herring <robh@kernel.org> | 2018-08-27 09:43:01 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2018-09-28 14:25:58 -0500 |
commit | de76e70a8d4ea4518ec46dff2f92e2970af1d512 (patch) | |
tree | 9ef6a97a031fc5174354f51894633379461483d1 /arch/arm64/kernel/smp.c | |
parent | 5af5d40c401581399f2b6a646a83ad0f31015eb6 (diff) | |
download | linux-de76e70a8d4ea4518ec46dff2f92e2970af1d512.tar.bz2 |
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 <catalin.marinas@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/smp.c')
-rw-r--r-- | arch/arm64/kernel/smp.c | 2 |
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) |