svn commit: r259099 - head/sys/arm/ti/am335x
Luiz Otavio O Souza
loos at FreeBSD.org
Sun Dec 8 13:46:27 UTC 2013
Author: loos
Date: Sun Dec 8 13:46:27 2013
New Revision: 259099
URL: http://svnweb.freebsd.org/changeset/base/259099
Log:
Similar to r255816, fix the math for the DELAY() calculation. It was off
by a really small amount because of the higher timer resolution.
Approved by: adrian (mentor)
Verified on: BBB
Modified:
head/sys/arm/ti/am335x/am335x_dmtimer.c
Modified: head/sys/arm/ti/am335x/am335x_dmtimer.c
==============================================================================
--- head/sys/arm/ti/am335x/am335x_dmtimer.c Sun Dec 8 11:13:37 2013 (r259098)
+++ head/sys/arm/ti/am335x/am335x_dmtimer.c Sun Dec 8 13:46:27 2013 (r259099)
@@ -359,7 +359,7 @@ DELAY(int usec)
}
/* Get the number of times to count */
- counts = usec * ((am335x_dmtimer_tc.tc_frequency / 1000000) + 1);
+ counts = usec * (am335x_dmtimer_tc.tc_frequency / 1000000) + 1;
first = am335x_dmtimer_tc_read_4(DMTIMER_TCRR);
More information about the svn-src-head
mailing list