diff options
author | vehemens <vehemens@verizon.net> | 2008-09-06 14:19:32 -0700 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2008-09-06 18:55:03 -0400 |
commit | b8a9cebddc7063bc0dae889dac43359c0cb9bfa5 (patch) | |
tree | 659eb03295a41700fc27483690879345b5708602 | |
parent | 0808cf923d4a851b100d9b7022cb82f5e1f52e28 (diff) |
Move order to end like linux.
Signed-off-by: Robert Noland <rnoland@2hip.net>
-rw-r--r-- | bsd-core/drm_bufs.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/bsd-core/drm_bufs.c b/bsd-core/drm_bufs.c index 9d2b52de..2570641d 100644 --- a/bsd-core/drm_bufs.c +++ b/bsd-core/drm_bufs.c @@ -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; +} |