handle_timer_interrupt

Function handle_timer_interrupt 

Source
pub unsafe fn handle_timer_interrupt()
Expand description

Handle a timer interrupt for preemptive scheduling.

This function should be called from the architecture-specific timer interrupt handler. It updates tick counters and triggers scheduling decisions.

§Safety

Must be called from an interrupt context with a valid interrupt frame. The caller must ensure that the interrupt frame is properly saved and that this function doesn’t corrupt the interrupted context.