svn commit: r220336 - head/sys/dev/acpica
Jung-uk Kim
jkim at FreeBSD.org
Mon Apr 4 17:44:27 UTC 2011
Author: jkim
Date: Mon Apr 4 17:44:26 2011
New Revision: 220336
URL: http://svn.freebsd.org/changeset/base/220336
Log:
Always check the current minimum value to make the test more predictable.
Use INT32_MAX instead of an arbitrary big number for the initial minimum.
Modified:
head/sys/dev/acpica/acpi_timer.c
Modified: head/sys/dev/acpica/acpi_timer.c
==============================================================================
--- head/sys/dev/acpica/acpi_timer.c Mon Apr 4 17:39:30 2011 (r220335)
+++ head/sys/dev/acpica/acpi_timer.c Mon Apr 4 17:44:26 2011 (r220336)
@@ -310,7 +310,7 @@ acpi_timer_test()
int min, max, n, delta;
register_t s;
- min = 10000000;
+ min = INT32_MAX;
max = 0;
/* Test the timer with interrupts disabled to get accurate results. */
@@ -321,7 +321,7 @@ acpi_timer_test()
delta = acpi_TimerDelta(this, last);
if (delta > max)
max = delta;
- else if (delta < min)
+ if (delta < min)
min = delta;
last = this;
}
More information about the svn-src-head
mailing list