mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
of: Fix cpu node iterator to not ignore disabled cpu nodes
In most cases, nodes with 'status = "disabled";' are treated as if the node is not present though it is a common bug to forget to check that. However, cpu nodes are different in that "disabled" simply means offline and the OS can bring the CPU core online. Commitf1f207e43b("of: Add cpu node iterator for_each_of_cpu_node()") followed the common behavior of ignoring disabled cpu nodes. This breaks some powerpc systems (at least NXP P50XX/e5500). Fix this by dropping the status check. Fixes:651d44f967("of: use for_each_of_cpu_node iterator") Fixes:f1f207e43b("of: Add cpu node iterator for_each_of_cpu_node()") Reported-by: Christian Zigotzky <[email protected]> Tested-by: Michael Ellerman <[email protected]> Cc: Frank Rowand <[email protected]> Signed-off-by: Rob Herring <[email protected]>
This commit is contained in:
parent
204c881e96
commit
c961cb3be9
1 changed files with 0 additions and 2 deletions
|
|
@ -776,8 +776,6 @@ struct device_node *of_get_next_cpu_node(struct device_node *prev)
|
|||
if (!(of_node_name_eq(next, "cpu") ||
|
||||
(next->type && !of_node_cmp(next->type, "cpu"))))
|
||||
continue;
|
||||
if (!__of_device_is_available(next))
|
||||
continue;
|
||||
if (of_node_get(next))
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue