diff options
author | Rob Herring <[email protected]> | 2023-06-09 12:13:47 -0600 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2023-06-20 11:56:28 -0700 |
commit | bd73d1fd63d4f67dc78640c9ae4f83e20a021d76 (patch) | |
tree | cc265ef13848662e35494f177b0c54024f5ad076 /lib/memory-notifier-error-inject.c | |
parent | 1949c0ebc8d660d35ea968ed609c528076b7d44f (diff) |
clk: mvebu: Iterate over possible CPUs instead of DT CPU nodes
Rework iterating over DT CPU nodes to iterate over possible CPUs
instead. There's no need to walk the DT CPU nodes again. Possible CPUs
is equal to the number of CPUs defined in the DT. Using the "reg" value
for an array index is fragile as it assumes "reg" is 0-N which often is
not the case.
Signed-off-by: Rob Herring <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions