mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
Rename TIME_MS_DELTA to CYCLES_PER_MS
TIME_MS_DELTA is not clear enough, rename it to CYCLES_PER_MS. Signed-off-by: Qi Yadong <yadong.qi@intel.com>
This commit is contained in:
@@ -67,7 +67,7 @@ int udiv32(uint32_t dividend, uint32_t divisor, struct udiv_result *res);
|
||||
|
||||
extern uint64_t tsc_clock_freq;
|
||||
#define US_TO_TICKS(x) ((x)*tsc_clock_freq/1000000UL)
|
||||
#define TIME_MS_DELTA US_TO_TICKS(1000UL)
|
||||
#define CYCLES_PER_MS US_TO_TICKS(1000UL)
|
||||
|
||||
#define TICKS_TO_US(x) ((((x) * (1000000UL >> 8)) / tsc_clock_freq) << 8)
|
||||
#define TICKS_TO_MS(x) (((x) * 1000UL) / tsc_clock_freq)
|
||||
|
Reference in New Issue
Block a user