MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cpu_idle

Function cpu_idle

freebsd/arm64/arm64/machdep.c:679–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679void
680cpu_idle(int busy)
681{
682
683 spinlock_enter();
684 if (!busy)
685 cpu_idleclock();
686 if (!sched_runnable())
687 __asm __volatile(
688 "dsb sy \n"
689 "wfi \n");
690 if (!busy)
691 cpu_activeclock();
692 spinlock_exit();
693}
694
695void
696cpu_halt(void)

Callers

nothing calls this directly

Calls 5

cpu_idleclockFunction · 0.85
cpu_activeclockFunction · 0.85
spinlock_enterFunction · 0.70
spinlock_exitFunction · 0.70
sched_runnableFunction · 0.50

Tested by

no test coverage detected