[package] name = "percpu" edition = "2021" description = "Define and access per-CPU data structures" documentation = "https://docs.rs/percpu" version.workspace = true authors.workspace = true license.workspace = true homepage.workspace = true repository.workspace = true keywords.workspace = true categories.workspace = true [features] # For single CPU use, just make the per-CPU data a global variable. sp-naive = ["percpu_macros/sp-naive"] # Whether the system enables preemption. preempt = ["percpu_macros/preempt", "dep:kernel_guard"] default = [] # ARM specific, whether to run at the EL2 privilege level. arm-el2 = ["percpu_macros/arm-el2"] [dependencies] cfg-if = "1.0" kernel_guard = { version = "0.1", optional = true } percpu_macros = { path = "../percpu_macros", version = "0.1" } [target.'cfg(target_arch = "x86_64")'.dependencies] x86 = "0.52" [target.'cfg(not(target_os = "none"))'.dependencies] spin = "0.9"