Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Dec 2009 20:42:56 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200739 - head/sys/powerpc/booke
Message-ID:  <200912192042.nBJKgu9i043225@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Sat Dec 19 20:42:56 2009
New Revision: 200739
URL: http://svn.freebsd.org/changeset/base/200739

Log:
  Remove a warning in DELAY about large delays. In kern_shutdown.c
  we use excessive delays quite habitually.

Modified:
  head/sys/powerpc/booke/clock.c

Modified: head/sys/powerpc/booke/clock.c
==============================================================================
--- head/sys/powerpc/booke/clock.c	Sat Dec 19 19:35:53 2009	(r200738)
+++ head/sys/powerpc/booke/clock.c	Sat Dec 19 20:42:56 2009	(r200739)
@@ -197,15 +197,8 @@ DELAY(int n)
 {
 	u_quad_t start, end, now;
 
-#define USECS_IN_SEC	1000000ULL
-
-	if (n > USECS_IN_SEC) {
-		printf("WARNING: %s(%d) called from %p", __func__, n,
-		    __builtin_return_address(0));
-	}
-
 	start = mftb();
-	end = start + (u_quad_t)ticks_per_sec / (USECS_IN_SEC / n);
+	end = start + (u_quad_t)ticks_per_sec / (1000000ULL / n);
 	do {
 		now = mftb();
 	} while (now < end || (now > start && end < start));



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