Sign in
android-kvm
/
kvm-unit-tests
/
34bbdd6546c7f1dfe94bd2dbb70db9a25dc38bec
/
.
/
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
);
}