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:
Qi Yadong
2018-03-29 08:55:09 +08:00
committed by Jack Ren
parent 8502c8eff3
commit 8d67f292ef
5 changed files with 6 additions and 6 deletions

View File

@@ -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)