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 <s...@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);
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to