Cargo Features
ax-percpu has no features set by default.
[dependencies]
ax-percpu = { version = "0.4.11", features = ["sp-naive", "preempt", "arm-el2", "non-zero-vma", "custom-base"] }
- sp-naive
-
For single CPU use, just make the per-CPU data a global variable.
Enables sp-naive of ax-percpu-macros
- preempt
-
Whether the system enables preemption.
Enables ax-kernel-guard, preempt of ax-percpu-macros
- arm-el2
-
ARM specific, whether to run at the EL2 privilege level.
Enables arm-el2 of ax-percpu-macros
- non-zero-vma
-
Allow using non-zero VMA addresses for
.percpusection. Required for testing on Linux user-space. May reduce performance slightly.Enables non-zero-vma of ax-percpu-macros
- custom-base
-
Enable custom per-CPU base mode: per-CPU statics are generated as
PerCpuData<T>and the caller is responsible for setting the CPU-local base register (e.g. viainit_percpu_reg) before current-CPU access.Enables custom-base of ax-percpu-macros