From owner-svn-src-all@FreeBSD.ORG Mon Sep 23 14:00:19 2013 Return-Path: Delivered-To: svn-src-all@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 ESMTP id 27EE3ABF; Mon, 23 Sep 2013 14:00:19 +0000 (UTC) (envelope-from loos@FreeBSD.org) 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 15A3E2F46; Mon, 23 Sep 2013 14:00:19 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8NE0IX4035181; Mon, 23 Sep 2013 14:00:18 GMT (envelope-from loos@svn.freebsd.org) Received: (from loos@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8NE0IsY035179; Mon, 23 Sep 2013 14:00:18 GMT (envelope-from loos@svn.freebsd.org) Message-Id: <201309231400.r8NE0IsY035179@svn.freebsd.org> From: Luiz Otavio O Souza Date: Mon, 23 Sep 2013 14:00:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255816 - head/sys/arm/broadcom/bcm2835 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 14:00:19 -0000 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 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);