aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/isa/clock.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-01-17 18:59:38 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-01-17 18:59:38 +0000
commitc05655bfda46e1ea6ddeee5a6c12ea44ddff28ec (patch)
tree3c99a002d20f9c0c3ae39a1f03e4eb826f36bb6e /sys/amd64/isa/clock.c
parent6634dbbde405683056b1535136993a0155b874eb (diff)
Notes
Diffstat (limited to 'sys/amd64/isa/clock.c')
-rw-r--r--sys/amd64/isa/clock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c
index 2809828150be..32752672b7fe 100644
--- a/sys/amd64/isa/clock.c
+++ b/sys/amd64/isa/clock.c
@@ -286,6 +286,7 @@ DELAY(int n)
start = rdtsc();
end = start + (tsc_freq * n) / 1000000;
do {
+ cpu_spinwait();
now = rdtsc();
} while (now < end || (now > start && end < start));
sched_unpin();