Module tsc

Source

Statics§

TSC_FREQ 🔒
The frequency of TSC(Hz)

Functions§

determine_tsc_freq_via_cpuid
Determines TSC frequency via CPUID. If the CPU does not support calculating TSC frequency by CPUID, the function will return None. The unit of the return value is KHz.
determine_tsc_freq_via_pit
When kernel cannot get the TSC frequency from CPUID, it can leverage the PIT to calculate this frequency.
init_tsc_freq