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

Function cpu_initclocks_ap

freebsd/kern/kern_clocksource.c:680–699  ·  view source on GitHub ↗

* Start per-CPU event timers on APs. */

Source from the content-addressed store, hash-verified

678 * Start per-CPU event timers on APs.
679 */
680void
681cpu_initclocks_ap(void)
682{
683 sbintime_t now;
684 struct pcpu_state *state;
685 struct thread *td;
686
687 state = DPCPU_PTR(timerstate);
688 now = sbinuptime();
689 ET_HW_LOCK(state);
690 state->now = now;
691 hardclock_sync(curcpu);
692 spinlock_enter();
693 ET_HW_UNLOCK(state);
694 td = curthread;
695 td->td_intr_nesting_level++;
696 handleevents(state->now, 2);
697 td->td_intr_nesting_level--;
698 spinlock_exit();
699}
700
701void
702suspendclock(void)

Callers 6

smp_init_secondaryFunction · 0.85
init_secondaryFunction · 0.85
init_secondaryFunction · 0.85
cpu_initclocksFunction · 0.85
cpu_initclocksFunction · 0.85
init_secondary_tailFunction · 0.85

Calls 5

sbinuptimeFunction · 0.85
hardclock_syncFunction · 0.85
handleeventsFunction · 0.85
spinlock_enterFunction · 0.50
spinlock_exitFunction · 0.50

Tested by

no test coverage detected