Sign in
android-kvm
/
kvm-unit-tests
/
ab0bbb9fd1eb426a8f43ac74eb762bc135568023
/
.
/
lib
/
x86
/
delay.c
blob: e7d27174a7e29702c5721e3e404b8c71e0861254 [
file
] [
log
] [
blame
]
#include
"delay.h"
#include
"processor.h"
void
delay
(
u64 count
)
{
u64 start
=
rdtsc
();
do
{
pause
();
}
while
(
rdtsc
()
-
start
<
count
);
}