Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Sep 2013 14:00:18 +0000 (UTC)
From:      Luiz Otavio O Souza <loos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255816 - head/sys/arm/broadcom/bcm2835
Message-ID:  <201309231400.r8NE0IsY035179@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309231400.r8NE0IsY035179>