svn commit: r189908 - head/sys/dev/drm
Robert Noland
rnoland at FreeBSD.org
Mon Mar 16 20:32:13 PDT 2009
Author: rnoland
Date: Tue Mar 17 03:32:12 2009
New Revision: 189908
URL: http://svn.freebsd.org/changeset/base/189908
Log:
Use flsl() here rather than ffsl()
I discovered that we were computing page_order differently than linux.
MFC after: 3 days
Modified:
head/sys/dev/drm/drm_bufs.c
Modified: head/sys/dev/drm/drm_bufs.c
==============================================================================
--- head/sys/dev/drm/drm_bufs.c Tue Mar 17 02:32:36 2009 (r189907)
+++ head/sys/dev/drm/drm_bufs.c Tue Mar 17 03:32:12 2009 (r189908)
@@ -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;
More information about the svn-src-all
mailing list