Cargo Features
per-CPU has no features set by default.
[dependencies]
percpu = { version = "0.1.6", features = ["sp-naive", "preempt", "arm-el2"] }
- sp-naive
-
For single CPU use, just make the per-CPU data a global variable.
Enables sp-naive of percpu_macros
- preempt
-
Whether the system enables preemption.
Enables kernel_guard, preempt of percpu_macros
- arm-el2
-
ARM specific, whether to run at the EL2 privilege level.
Enables arm-el2 of percpu_macros