Skip to main content

publish_scheduler_deadline

Function publish_scheduler_deadline 

Source
pub fn publish_scheduler_deadline(__arg0: SchedulerDeadlineUpdate)
Expand description

Commits the current CPU’s complete scheduler-deadline state.

The runtime owns the physical clockevent. It must ignore generations older than the most recently accepted update and merge the accepted scheduler deadline with non-scheduler sources before programming hardware. This hook is callable from ordinary task context, so the runtime must hold local IRQ exclusion across both state publication and hardware programming instead of relying on an implicit caller-side guard.

This is an infallible ownership boundary, like Linux’s hrtimer-to- clockevent rearm path. A runtime must absorb an expired hardware deadline by clamping it to the device’s minimum nonzero delta and treat a device that cannot retain a wakeup source as a runtime-fatal invariant. Returning a recoverable error here would leave the scheduler queue and physical clockevent in an unknowable half-committed state.