pub fn publish_local_scheduler_work() -> boolExpand description
Publishes sticky scheduler work to the current CPU’s architecture preemption state and reports whether a local safe point makes a self-IPI unnecessary.
The caller owns an IRQ guard and has already published the scheduler
payload. Before returning, the runtime must set the architecture-owned
need_resched state observed by preemption and IRQ return. It may return
true only when that state is guaranteed to reach the scheduler before
the CPU can sleep: through hard-IRQ return, an active scheduler/preemption
guard, or atomic conversion of the final task-context IRQ guard into a
scheduler baton.