Page MenuHomeFreeBSD

Run platform_late_init on all cpus.
AbandonedPublic

Authored by andrew on May 15 2017, 12:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 10, 8:03 AM
Unknown Object (File)
Apr 23 2025, 3:19 PM
Unknown Object (File)
Apr 23 2025, 12:04 AM
Unknown Object (File)
Apr 17 2025, 3:19 AM
Unknown Object (File)
Apr 14 2025, 11:13 AM
Unknown Object (File)
Mar 31 2025, 8:13 PM
Unknown Object (File)
Feb 17 2025, 9:18 AM
Unknown Object (File)
Dec 10 2024, 6:51 PM
Subscribers

Details

Reviewers
None
Group Reviewers
ARM
Summary

To simplify running startup code on all CPUs run platform_late_init on all
cpus. As some code may need to be run only on the boot core check for
curcpu being zero before running it.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 9261
Build 9714: arc lint + arc unit

Event Timeline

Nothing strong, but I would probably prefer a new method for late init on secondary cores, instead of reusing of platform_late_init() - something like platform_mp_late_init.
Code sharing between BP / AP will be very rare, i think.

BTW, it looks that we do not have a variable with boot cpu number. If it's true, I would suggest to have it for cases like this.