We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18c355f commit 417d17eCopy full SHA for 417d17e
hypervisor/lib/udelay.c
@@ -11,7 +11,7 @@ void udelay(int loop_count)
11
uint64_t dest_tsc, delta_tsc;
12
13
/* Calculate number of ticks to wait */
14
- delta_tsc = CYCLES_PER_MS * loop_count;
+ delta_tsc = US_TO_TICKS(loop_count);
15
dest_tsc = rdtsc() + delta_tsc;
16
17
/* Loop until time expired */
0 commit comments