FreeBSD kernel kern code
subr_clockcalib.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/timetc.h>
#include <sys/tslog.h>
#include <machine/cpu.h>
Include dependency graph for subr_clockcalib.c:

Go to the source code of this file.

Macros

#define TSC_PPM_UNCERTAINTY   1
 
#define TSC_UNCERTAINTY   TSC_PPM_UNCERTAINTY * 0.000001
 
#define TSC_UNCERTAINTY_SQR   TSC_UNCERTAINTY * TSC_UNCERTAINTY
 

Functions

 __FBSDID ("$FreeBSD$")
 
uint64_t clockcalib (uint64_t(*clk)(void), const char *clkname)
 

Macro Definition Documentation

◆ TSC_PPM_UNCERTAINTY

#define TSC_PPM_UNCERTAINTY   1

◆ TSC_UNCERTAINTY

#define TSC_UNCERTAINTY   TSC_PPM_UNCERTAINTY * 0.000001

◆ TSC_UNCERTAINTY_SQR

#define TSC_UNCERTAINTY_SQR   TSC_UNCERTAINTY * TSC_UNCERTAINTY

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ clockcalib()

uint64_t clockcalib ( uint64_t(*)(void)  clk,
const char *  clkname 
)

clockcalib(clk, clkname): Return the frequency of the provided timer, as calibrated against the current best-available timecounter.

Definition at line 42 of file subr_clockcalib.c.

References bootverbose, passes, printf(), timecounter, and TSC_UNCERTAINTY_SQR.

Here is the call graph for this function: