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

Function cpu_initclocks

freebsd/x86/isa/clock.c:406–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406void
407cpu_initclocks(void)
408{
409#ifdef EARLY_AP_STARTUP
410 struct thread *td;
411 int i;
412
413 td = curthread;
414 cpu_initclocks_bsp();
415 CPU_FOREACH(i) {
416 if (i == 0)
417 continue;
418 thread_lock(td);
419 sched_bind(td, i);
420 thread_unlock(td);
421 cpu_initclocks_ap();
422 }
423 thread_lock(td);
424 if (sched_is_bound(td))
425 sched_unbind(td);
426 thread_unlock(td);
427#else
428 cpu_initclocks_bsp();
429#endif
430}
431
432static int
433sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)

Callers 1

initclocksFunction · 0.50

Calls 5

cpu_initclocks_bspFunction · 0.85
cpu_initclocks_apFunction · 0.85
sched_bindFunction · 0.50
sched_is_boundFunction · 0.50
sched_unbindFunction · 0.50

Tested by

no test coverage detected