Page MenuHomeFreeBSD

Add a function to run a callback for each cpu in the OFW data
ClosedPublic

Authored by andrew on Feb 11 2015, 7:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 17, 10:21 PM
Unknown Object (File)
May 2 2024, 7:45 AM
Unknown Object (File)
Apr 18 2024, 11:33 AM
Unknown Object (File)
Apr 18 2024, 11:33 AM
Unknown Object (File)
Mar 11 2024, 6:46 AM
Unknown Object (File)
Jan 16 2024, 2:16 PM
Unknown Object (File)
Jan 9 2024, 6:29 AM
Unknown Object (File)
Dec 20 2023, 1:23 AM
Subscribers

Details

Reviewers
nwhitehorn
Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

andrew retitled this revision from to Add a function to run a callback for each cpu in the OFW data.
andrew updated this object.
andrew edited the test plan for this revision. (Show Details)
andrew added a reviewer: nwhitehorn.

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.

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.

Did you have any problems with this? I would like to get this into the tree soon for use by arm64.

nwhitehorn edited edge metadata.

Sorry, was traveling. Looks good to me.

This revision is now accepted and ready to land.Feb 19 2015, 4:18 PM