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