summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-10-06 16:27:55 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-10-06 16:27:55 +0000
commit61d36f6179f535de4a37c58cb7dade2b6035883d (patch)
treeb0f2056879c2ee51c10be2eec2f388f460a56a56 /shared-core
parent4dbc1e87288987f0506087c7971639c33af8fe3e (diff)
Revert back to drm_order() instead of using kernel get_order(). The
functions are not identical.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/r128_cce.c2
-rw-r--r--shared-core/radeon_cp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/r128_cce.c b/shared-core/r128_cce.c
index 4246cc7c..ad0a8814 100644
--- a/shared-core/r128_cce.c
+++ b/shared-core/r128_cce.c
@@ -541,7 +541,7 @@ static int r128_do_init_cce(drm_device_t * dev, drm_r128_init_t * init)
dev_priv->ring.end = ((u32 *) dev_priv->cce_ring->handle
+ init->ring_size / sizeof(u32));
dev_priv->ring.size = init->ring_size;
- dev_priv->ring.size_l2qw = get_order(init->ring_size / 8);
+ dev_priv->ring.size_l2qw = drm_order(init->ring_size / 8);
dev_priv->ring.tail_mask = (dev_priv->ring.size / sizeof(u32)) - 1;
diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c
index 33a10ab5..36a77ad4 100644
--- a/shared-core/radeon_cp.c
+++ b/shared-core/radeon_cp.c
@@ -1202,7 +1202,7 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init)
dev_priv->ring.end = ((u32 *) dev_priv->cp_ring->handle
+ init->ring_size / sizeof(u32));
dev_priv->ring.size = init->ring_size;
- dev_priv->ring.size_l2qw = get_order(init->ring_size / 8);
+ dev_priv->ring.size_l2qw = drm_order(init->ring_size / 8);
dev_priv->ring.tail_mask = (dev_priv->ring.size / sizeof(u32)) - 1;