This will be used on arm64 to enumerate the cpus, and to initialise
the per-cpu data.
It may also be useful for arm and mips as they will need to iterate
over these entries in their SMP init code.
Differential D1825
Add a function to run a callback for each cpu in the OFW data andrew on Feb 11 2015, 7:01 PM. Authored by Tags None Referenced Files
Details
This will be used on arm64 to enumerate the cpus, and to initialise It may also be useful for arm and mips as they will need to iterate
Diff Detail
Event TimelineComment Actions Could you elaborate more on what this does? I'm not really sure what the goal is relative to platform drivers that iterate through the tree (this is how PowerPC and sparc64 SMP work) or subdrivers (like cpufreq) hanging off the CPU hierarchy. Comment Actions This is for platform drivers that iterate through the tree. I will be using it in a similar way to how sparc64 used the foreach_ap function in mp_machdep.c. For things like cpufreq I expect them to be proper drivers so will not use this code. Comment Actions Did you have any problems with this? I would like to get this into the tree soon for use by arm64. |