⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module power

Module power 

Source
Expand description

Power management subsystem for VeridianOS

Provides CPU power state management:

  • C-states (idle states): C0 (Active), C1 (Halt), C2 (StopClock), C3 (Sleep)
  • P-states (performance states): frequency/voltage scaling
  • OnDemand governor: automatic frequency scaling based on CPU utilization

Architecture support:

  • x86_64: HLT (C1), MWAIT (C2/C3), IA32_PERF_CTL MSR for P-states
  • AArch64: WFI for idle states
  • RISC-V: WFI for idle states