Restarting Ticks

tick_nohz_restart_sched_tick is used to restart ticks. The code flow diagram is given by Figure 15-20.

Figure 15-20: Code flow diagram for tick_nohz_restart_sched_tick.

Again, the implementation is complicated by various technical details, but the general principle is rather simple. Our old acquaintance tick_do_updates_jiffies64 is called first. After correctly accounting the idle time, tick_sched->tick_stopped is set to 0 because the tick is now active again. Finally, the next tick event needs to be programmed. This is necessary because the idle time might have ended before the expected time because of an external interrupt.

Continue reading here: Broadcast Mode

Was this article helpful?

0 0