Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon ALIGN -> round_up



details:   https://anonhg.NetBSD.org/src/rev/8f9cdda598b9
branches:  trunk
changeset: 1028070:8f9cdda598b9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:47:01 2021 +0000

description:
ALIGN -> round_up

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2b40a8040aa5 -r 8f9cdda598b9 sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c        Sun Dec 19 01:46:52 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_cik.c        Sun Dec 19 01:47:01 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeon_cik.c,v 1.3 2021/12/18 23:45:43 riastradh Exp $ */
+/*     $NetBSD: radeon_cik.c,v 1.4 2021/12/19 01:47:01 riastradh Exp $ */
 
 /*
  * Copyright 2012 Advanced Micro Devices, Inc.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_cik.c,v 1.3 2021/12/18 23:45:43 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_cik.c,v 1.4 2021/12/19 01:47:01 riastradh Exp $");
 
 #include <linux/firmware.h>
 #include <linux/module.h>
@@ -8398,7 +8398,7 @@
                }
        }
        rdev->rlc.cs_data = ci_cs_data;
-       rdev->rlc.cp_table_size = ALIGN(CP_ME_TABLE_SIZE * 5 * 4, 2048); /* CP JT */
+       rdev->rlc.cp_table_size = round_up(CP_ME_TABLE_SIZE * 5 * 4, 2048); /* CP JT */
        rdev->rlc.cp_table_size += 64 * 1024; /* GDS */
        r = sumo_rlc_init(rdev);
        if (r) {



Home | Main Index | Thread Index | Old Index