Move order to end like linux.

Signed-off-by: Robert Noland <rnoland@2hip.net>
main
vehemens 2008-09-06 14:19:32 -07:00 committed by Robert Noland
parent 0808cf923d
commit b8a9cebddc
1 changed files with 16 additions and 16 deletions

View File

@ -36,22 +36,6 @@
#include "drmP.h"
/*
* Compute order. Can be made faster.
*/
int drm_order(unsigned long size)
{
int order;
unsigned long tmp;
for (order = 0, tmp = size; tmp >>= 1; ++order);
if (size & ~(1 << order))
++order;
return order;
}
/* Allocation of PCI memory resources (framebuffer, registers, etc.) for
* drm_get_resource_*. Note that they are not RF_ACTIVE, so there's no virtual
* address for accessing them. Cleaned up at unload.
@ -1131,3 +1115,19 @@ int drm_mapbufs(struct drm_device *dev, void *data, struct drm_file *file_priv)
return retcode;
}
/*
* Compute order. Can be made faster.
*/
int drm_order(unsigned long size)
{
int order;
unsigned long tmp;
for (order = 0, tmp = size; tmp >>= 1; ++order);
if (size & ~(1 << order))
++order;
return order;
}