Page MenuHomeFreeBSD

Run platform_late_init on all cpus.
Needs ReviewPublic

Authored by andrew on May 15 2017, 12:45 PM.


Group Reviewers

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 OK
No Unit 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.