diff options
author | rnoland <rnoland@FreeBSD.org> | 2009-03-17 03:32:12 +0000 |
---|---|---|
committer | rnoland <rnoland@FreeBSD.org> | 2009-03-17 03:32:12 +0000 |
commit | a1322394c1f2559065476ca465a89336495231a2 (patch) | |
tree | 9e62aa029940398832e7c983eb1e352c2cee4c83 /sys/dev/drm | |
parent | a32f83a4578b60fc5d9c0d96e05e6307441f514c (diff) | |
download | FreeBSD-src-a1322394c1f2559065476ca465a89336495231a2.zip FreeBSD-src-a1322394c1f2559065476ca465a89336495231a2.tar.gz |
Use flsl() here rather than ffsl()
I discovered that we were computing page_order differently than linux.
MFC after: 3 days
Diffstat (limited to 'sys/dev/drm')
-rw-r--r-- | sys/dev/drm/drm_bufs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/drm_bufs.c b/sys/dev/drm/drm_bufs.c index c7d0288..f29bbd1 100644 --- a/sys/dev/drm/drm_bufs.c +++ b/sys/dev/drm/drm_bufs.c @@ -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; |