Thanks to visit codestin.com
Credit goes to lib.rs

Cargo Features

ax-percpu-macros has no features set by default.

[dependencies]
ax-percpu-macros = { version = "0.4.10", 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.

preempt

Whether the system enables preemption.

arm-el2

ARM specific, whether to run at the EL2 privilege level.

non-zero-vma

Allow using non-zero VMA addresses for .percpu section. Required for testing on Linux user-space. May reduce performance slightly.

custom-base