mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
doc: update timer HLD doc after modularization
Replace rdstc() and get_tsc_khz() with their architectural agnostic counterparts cpu_ticks() and cpu_tickrate(). Tracked-On: #5920 Signed-off-by: Yi Liang <yi.liang@intel.com>
This commit is contained in:
@@ -34,6 +34,9 @@ uint32_t get_tsc_khz(void);
|
||||
/**
|
||||
* @brief Calibrate Time Stamp Counter (TSC) frequency.
|
||||
*
|
||||
* @remark Generic time related routines, e.g., cpu_tickrate(), us_to_ticks(),
|
||||
* udelay(), etc., relies on this function being called earlier during system initialization.
|
||||
*
|
||||
* @return None
|
||||
*/
|
||||
void calibrate_tsc(void);
|
||||
|
@@ -14,6 +14,8 @@
|
||||
/**
|
||||
* @brief Read current CPU tick count.
|
||||
*
|
||||
* @remark On x86, this is the Time Stamp Counter (TSC) value of the current logical CPU.
|
||||
*
|
||||
* @return CPU ticks
|
||||
*/
|
||||
uint64_t cpu_ticks(void);
|
||||
@@ -21,6 +23,8 @@ uint64_t cpu_ticks(void);
|
||||
/**
|
||||
* @brief Get CPU tick frequency in KHz.
|
||||
*
|
||||
* @remark On x86, this is the Time Stamp Counter (TSC) frequency of the current logical CPU.
|
||||
*
|
||||
* @return CPU frequency (KHz)
|
||||
*/
|
||||
uint32_t cpu_tickrate(void);
|
||||
|
Reference in New Issue
Block a user