ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation.sched.cpupri.core Module Reference

Functions

auto zxfoundation::sched::cpupri::find_fitness (u8 pri_threshold, const ::lib::cpumask &affinity) noexcept -> u16
 Find the CPU with the lowest RT priority at or below a threshold, restricted by an affinity mask.
auto zxfoundation::sched::cpupri::init () noexcept -> void
 Initialize the cpupri index.
consteval auto zxfoundation::sched::cpupri::nr_priorities () noexcept -> u32
 Count of supported priority buckets.
auto zxfoundation::sched::cpupri::pri_set (u16 cpu, u8 old_pri, u8 new_pri) noexcept -> void
 Update the index for an RT enqueue/dequeue on a CPU.
auto zxfoundation::sched::cpupri::pri_top (u16 cpu) noexcept -> u8
 Read the cached top RT priority of a CPU.

Variables

constexpr u8 zxfoundation::sched::cpupri::CPUPRI_INVALID = 0xFFU
 Sentinel priority used for "no RT work" buckets.
constexpr u32 zxfoundation::sched::cpupri::CPUPRI_NR_PRIORITIES = 128U
 Highest RT priority supported by the index.

Files

file  zxfoundation/sched/cpupri.zcomponent/core.cxxm
file  zxfoundation/sched/cpupri.zcomponent/core.cxx