summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon/r600.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-04-06 14:11:00 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-04-06 14:11:00 +0000
commit069b9acf99fdfb44d00855a26be049b5c64bedf4 (patch)
tree50ef9b0058fc134e5091c8e7c5941a32ebd7bcb7 /sys/dev/pci/drm/radeon/r600.c
parentc4596ed4b33aeca1e718ff59cf7c2a4dd0e4dfb0 (diff)
switch back from howmany() to DIV_ROUND_UP()
Diffstat (limited to 'sys/dev/pci/drm/radeon/r600.c')
-rw-r--r--sys/dev/pci/drm/radeon/r600.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon/r600.c b/sys/dev/pci/drm/radeon/r600.c
index d1a66165634..2463c10996a 100644
--- a/sys/dev/pci/drm/radeon/r600.c
+++ b/sys/dev/pci/drm/radeon/r600.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: r600.c,v 1.18 2015/04/06 12:25:10 jsg Exp $ */
+/* $OpenBSD: r600.c,v 1.19 2015/04/06 14:10:59 jsg Exp $ */
/*
* Copyright 2008 Advanced Micro Devices, Inc.
* Copyright 2008 Red Hat Inc.
@@ -2684,7 +2684,7 @@ int r600_copy_dma(struct radeon_device *rdev,
}
size_in_dw = (num_gpu_pages << RADEON_GPU_PAGE_SHIFT) / 4;
- num_loops = howmany(size_in_dw, 0xFFFE);
+ num_loops = DIV_ROUND_UP(size_in_dw, 0xFFFE);
r = radeon_ring_lock(rdev, ring, num_loops * 4 + 8);
if (r) {
DRM_ERROR("radeon: moving bo (%d).\n", r);