From owner-svn-src-head@FreeBSD.ORG Sun Dec 8 13:46:27 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB580FE4; Sun, 8 Dec 2013 13:46:27 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9739E13AB; Sun, 8 Dec 2013 13:46:27 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rB8DkRFQ086574; Sun, 8 Dec 2013 13:46:27 GMT (envelope-from loos@svn.freebsd.org) Received: (from loos@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rB8DkR0t086573; Sun, 8 Dec 2013 13:46:27 GMT (envelope-from loos@svn.freebsd.org) Message-Id: <201312081346.rB8DkR0t086573@svn.freebsd.org> From: Luiz Otavio O Souza Date: Sun, 8 Dec 2013 13:46:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259099 - head/sys/arm/ti/am335x X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Dec 2013 13:46:27 -0000 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);