FreeBSD kernel kern code
|
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/timetc.h>
#include <sys/tslog.h>
#include <machine/cpu.h>
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) |
#define TSC_PPM_UNCERTAINTY 1 |
#define TSC_UNCERTAINTY TSC_PPM_UNCERTAINTY * 0.000001 |
#define TSC_UNCERTAINTY_SQR TSC_UNCERTAINTY * TSC_UNCERTAINTY |
__FBSDID | ( | "$FreeBSD$" | ) |
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.