svn commit: r255816 - head/sys/arm/broadcom/bcm2835
Luiz Otavio O Souza
loos at FreeBSD.org
Mon Sep 23 14:00:19 UTC 2013
Author: loos
Date: Mon Sep 23 14:00:18 2013
New Revision: 255816
URL: http://svnweb.freebsd.org/changeset/base/255816
Log:
Fix DELAY() on RPi, the wrong math was making it take twice it should.
Reported by: Alexander <sht at ropnet.ru>
Approved by: adrian (mentor)
Approved by: re (gjb)
Modified:
head/sys/arm/broadcom/bcm2835/bcm2835_systimer.c
Modified: head/sys/arm/broadcom/bcm2835/bcm2835_systimer.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_systimer.c Mon Sep 23 13:16:21 2013 (r255815)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_systimer.c Mon Sep 23 14:00:18 2013 (r255816)
@@ -296,7 +296,7 @@ DELAY(int usec)
}
/* Get the number of times to count */
- counts = usec * ((bcm_systimer_tc.tc_frequency / 1000000) + 1);
+ counts = usec * (bcm_systimer_tc.tc_frequency / 1000000) + 1;
first = bcm_systimer_tc_read_4(SYSTIMER_CLO);
More information about the svn-src-head
mailing list