FreeBSD: use flsl() instead of ffsl().

I noticed that we were computing drm_order differently than linux.
This commit is contained in:
Robert Noland 2009-03-16 00:08:06 -05:00
parent 2ce00c6b67
commit 06e182d025

View file

@ -1102,7 +1102,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;