HomeFreeBSD

Add explicit SI_SUB_EPOCH

Description

Add explicit SI_SUB_EPOCH

Add explicit SI_SUB_EPOCH, after SI_SUB_TASKQ and before SI_SUB_SMP
(EARLY_AP_STARTUP). Rename existing "SI_SUB_TASKQ + 1" to SI_SUB_EPOCH.

epoch(9) consumers cannot epoch_alloc() before SI_SUB_EPOCH:SI_ORDER_SECOND,
but likely should allocate before SI_SUB_SMP. Prior to this change,
consumers (well, epoch itself, and net/if.c) just open-coded the
SI_SUB_TASKQ + 1 order to match epoch.c, but this was fragile.

(cherry picked from commit 7993a104a10c81e4049e5923061d9bb7a5e35d80)

Details

Provenance
cemAuthored on Nov 22 2019, 11:23 PM
obrienCommitted on Feb 22 2022, 6:20 AM
Parents
rG4e5efa1c801f: random(4): Simplify RANDOM_LOADABLE
Branches
Unknown
Tags
Unknown