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

Function cpu_idle

freebsd/arm/arm/machdep.c:245–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void
246cpu_idle(int busy)
247{
248
249 CTR2(KTR_SPARE2, "cpu_idle(%d) at %d", busy, curcpu);
250 spinlock_enter();
251 if (!busy)
252 cpu_idleclock();
253 if (!sched_runnable())
254 cpu_sleep(0);
255 if (!busy)
256 cpu_activeclock();
257 spinlock_exit();
258 CTR2(KTR_SPARE2, "cpu_idle(%d) at %d done", busy, curcpu);
259}
260
261int
262cpu_idle_wakeup(int cpu)

Callers 2

sched_idletdFunction · 0.50
sched_idletdFunction · 0.50

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