Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 2009 05:42:27 +0000 (UTC)
From:      Robert Noland <rnoland@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r190128 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb dev/drm
Message-ID:  <200903200542.n2K5gRmp087418@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rnoland
Date: Fri Mar 20 05:42:27 2009
New Revision: 190128
URL: http://svn.freebsd.org/changeset/base/190128

Log:
  Merge 189908
  
  Use flsl() here rather than ffsl()
  
  I discovered that we were computing page_order differently than linux.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/ath/ath_hal/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)
  stable/7/sys/dev/drm/drm_bufs.c

Modified: stable/7/sys/dev/drm/drm_bufs.c
==============================================================================
--- stable/7/sys/dev/drm/drm_bufs.c	Fri Mar 20 05:33:58 2009	(r190127)
+++ stable/7/sys/dev/drm/drm_bufs.c	Fri Mar 20 05:42:27 2009	(r190128)
@@ -1106,7 +1106,7 @@ int drm_order(unsigned long size)
 	if (size == 0)
 		return 0;
 
-	order = ffsl(size) - 1;
+	order = flsl(size) - 1;
 	if (size & ~(1ul << order))
 		++order;
 



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