FreeBSD/sys/kern/kern_clocksource.c
/*
 * Change the frequency of the given timer.  This changes et->et_frequency and
 * if et is the active timer it reconfigures the timer on all CPUs.  This is
 * intended to be a private interface for the use of et_change_frequency() only.
 */
Change the frequency of the given timer.  This changes et->et_frequency and
if et is the active timer it reconfigures the timer on all CPUs.  This is
intended to be a private interface for the use of et_change_frequency() only.
Change the frequency of the given timer . This changes et - > et_frequency and if et is the active timer it reconfigures the timer on all CPUs . This is intended to be a private interface for the use of et_change_frequency () only .
void
cpu_et_frequency(struct eventtimer *et, uint64_t newfreq)
{
	ET_LOCK();
	if (et == timer) {
		configtimer(0);
		et->et_frequency = newfreq;
		configtimer(1);
	} else
		et->et_frequency = newfreq;
	ET_UNLOCK();
}
void cpu_et_frequency ( struct eventtimer * et , uint64_t newfreq ) { ET_LOCK ( ) ; if ( et == timer ) { configtimer ( 0 ) ; et -> et_frequency = newfreq ; configtimer ( 1 ) ; } else et -> et_frequency = newfreq ; ET_UNLOCK ( ) ; }
Change the frequency of the given timer.
Change the frequency of the given timer .