FreeBSD/sys/kern/kern_clocksource.c
/*
 * Start per-CPU event timers on APs.
 */
Start per-CPU event timers on APs.
Start per - CPU event timers on APs .
void
cpu_initclocks_ap(void)
{
	sbintime_t now;
	struct pcpu_state *state;
	struct thread *td;
	state = DPCPU_PTR(timerstate);
	now = sbinuptime();
	ET_HW_LOCK(state);
	state->now = now;
	hardclock_sync(curcpu);
	spinlock_enter();
	ET_HW_UNLOCK(state);
	td = curthread;
	td->td_intr_nesting_level++;
	handleevents(state->now, 2);
	td->td_intr_nesting_level--;
	spinlock_exit();
}
void cpu_initclocks_ap ( void ) { sbintime_t now ; struct pcpu_state * state ; struct thread * td ; state = DPCPU_PTR ( timerstate ) ; now = sbinuptime ( ) ; ET_HW_LOCK ( state ) ; state -> now = now ; hardclock_sync ( curcpu ) ; spinlock_enter ( ) ; ET_HW_UNLOCK ( state ) ; td = curthread ; td -> td_intr_nesting_level ++ ; handleevents ( state -> now , 2 ) ; td -> td_intr_nesting_level -- ; spinlock_exit ( ) ; }
Start per-CPU event timers on APs.
Start per - CPU event timers on APs .