diff options
author | tmm <tmm@FreeBSD.org> | 2002-10-20 19:41:21 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2002-10-20 19:41:21 +0000 |
commit | f44b123543da0607ca25668f65dabcd9295972b3 (patch) | |
tree | 2a695e82d5f5577cb252d65a274cecdb61be3fd8 | |
parent | 7d2db58a651da1889774eee80f6e060c377d8e22 (diff) | |
download | FreeBSD-src-f44b123543da0607ca25668f65dabcd9295972b3.zip FreeBSD-src-f44b123543da0607ca25668f65dabcd9295972b3.tar.gz |
Use microuptime() instead of microtime() to bound the flush wait to
avoid hiccups in case of system time adjustment.
-rw-r--r-- | sys/sparc64/sparc64/iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/iommu.c b/sys/sparc64/sparc64/iommu.c index a6c79b3..b4128f4 100644 --- a/sys/sparc64/sparc64/iommu.c +++ b/sys/sparc64/sparc64/iommu.c @@ -470,14 +470,14 @@ iommu_strbuf_flush_sync(struct iommu_state *is) } } - microtime(&cur); + microuptime(&cur); end.tv_sec = 0; end.tv_usec = 500000; timevaladd(&end, &cur); while ((!*is->is_flushva[0] || !*is->is_flushva[1]) && timevalcmp(&cur, &end, <=)) - microtime(&cur); + microuptime(&cur); #ifdef DIAGNOSTIC if (!*is->is_flushva[0] || !*is->is_flushva[1]) { |