This is the same idea as MTX_SYSINIT and friends: register a global
counter for initialization when the counter(9) subsystem is ready,
instead of having to write a custom sysinit function.
Details
Details
- Reviewers
kib glebius - Group Reviewers
manpages - Commits
- rS358715: Add COUNTER_U64_SYSINIT() and COUNTER_U64_DEFINE_EARLY().
Diff Detail
Diff Detail
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 29827 Build 27653: arc lint + arc unit
Event Timeline
sys/sys/counter.h | ||
---|---|---|
78 | I am somewhat curious about selection of the si_sub there. |
sys/sys/counter.h | ||
---|---|---|
78 | It is just inherited from the existing sysinits which initialize counters. It could be moved earlier, I think the only prerequisite is that the pcpu zones are initialized. |
Comment Actions
- Add COUNTER_U64_DEFINE_EARLY.
- Add SI_SUB_COUNTER to make initialization ordering more explicit.