Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2013 13:46:27 +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: r259099 - head/sys/arm/ti/am335x
Message-ID:  <201312081346.rB8DkR0t086573@svn.freebsd.org>

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



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