This allows to initialize mp_maxid, mp_ncpus and register APICs at the most early stage, guaranteeing that those values will already be available at SI_SUB_TUNABLES.
Details
Details
- Reviewers
markj - Group Reviewers
Src Committers srcmgr - Commits
- rG4f2465260f03: SYSINIT: add SI_SUB_FIRST
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| sys/sys/kernel.h | ||
|---|---|---|
| 97 | Can we just call it _EARLY or _FIRST? APIC is specific to x86. Or call it SI_SUB_NUMCPUS or something, to make it clear it's used for counting CPUs. arm64's mp_setmaxid() could use it too. Or, just use SI_SUB_TUNABLES/SI_ORDER_FIRST. That's what arm64 and !SMP kernels do. | |
| sys/sys/kernel.h | ||
|---|---|---|
| 97 | I will use SI_SUB_FIRST as there already exists SI_SUB_LAST. I don't like to resort to SI_SUB_TUNABLES/SI_ORDER_FIRST, as that would require all real tunables [that care about number of CPUs] to start with SI_ORDER_SECOND. The SI_SUB_FIRST would allow to provide any other info that maybe needed before tunables if any appears in the future. | |