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

Function cpu_startprofclock

freebsd/kern/kern_clocksource.c:720–735  ·  view source on GitHub ↗

* Switch to profiling clock rates. */

Source from the content-addressed store, hash-verified

718 * Switch to profiling clock rates.
719 */
720void
721cpu_startprofclock(void)
722{
723
724 ET_LOCK();
725 if (profiling == 0) {
726 if (periodic) {
727 configtimer(0);
728 profiling = 1;
729 configtimer(1);
730 } else
731 profiling = 1;
732 } else
733 profiling++;
734 ET_UNLOCK();
735}
736
737/*
738 * Switch to regular clock rates.

Callers 1

startprofclockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected