1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

Use microuptime() instead of microtime() to bound the flush wait to

avoid hiccups in case of system time adjustment.
This commit is contained in:
Thomas Moestl 2002-10-20 19:41:21 +00:00
parent bba43ee522
commit 10a3514a2e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105545

View File

@ -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]) {