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>
This commit is contained in:
parent
5af5d40c40
commit
de76e70a8d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user