Page MenuHomeFreeBSD

Run platform_late_init on all cpus.
Needs ReviewPublic

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

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 OK
Unit
No Unit Test Coverage
Build Status
Buildable 9261
Build 9714: arc lint + arc unit

Event Timeline

andrew created this revision.May 15 2017, 12:45 PM
mmel added a subscriber: mmel.May 15 2017, 1:13 PM

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.

skra added a subscriber: skra.May 15 2017, 9:46 PM

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.