aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/freescale
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2018-08-20 15:57:27 +0000
committerAlan Cox <alc@FreeBSD.org>2018-08-20 15:57:27 +0000
commit44d0efb2154d884c85919229f28b31d50d25a350 (patch)
treed8950cf9ecd0e22a11be2b1a5be868240f19766a /sys/arm/freescale
parent8805f3d7be2ce01a2f80c6a33b4cd84e6632a81d (diff)
downloadsrc-44d0efb2154d884c85919229f28b31d50d25a350.tar.gz
src-44d0efb2154d884c85919229f28b31d50d25a350.zip
Eliminate kmem_alloc_contig()'s unused arena parameter.
Reviewed by: hselasky, kib, markj Discussed with: jeff Differential Revision: https://reviews.freebsd.org/D16799
Notes
Notes: svn path=/head/; revision=338107
Diffstat (limited to 'sys/arm/freescale')
-rw-r--r--sys/arm/freescale/imx/imx6_sdma.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/arm/freescale/imx/imx6_sdma.c b/sys/arm/freescale/imx/imx6_sdma.c
index 7bb99c8ae124..6566151e68a4 100644
--- a/sys/arm/freescale/imx/imx6_sdma.c
+++ b/sys/arm/freescale/imx/imx6_sdma.c
@@ -179,9 +179,8 @@ sdma_alloc(void)
chn = i;
/* Allocate area for buffer descriptors */
- channel->bd = (void *)kmem_alloc_contig(kernel_arena,
- PAGE_SIZE, M_ZERO, 0, ~0, PAGE_SIZE, 0,
- VM_MEMATTR_UNCACHEABLE);
+ channel->bd = (void *)kmem_alloc_contig(PAGE_SIZE, M_ZERO, 0, ~0,
+ PAGE_SIZE, 0, VM_MEMATTR_UNCACHEABLE);
return (chn);
}
@@ -392,8 +391,8 @@ boot_firmware(struct sdma_softc *sc)
sz = SDMA_N_CHANNELS * sizeof(struct sdma_channel_control) + \
sizeof(struct sdma_context_data);
- sc->ccb = (void *)kmem_alloc_contig(kernel_arena,
- sz, M_ZERO, 0, ~0, PAGE_SIZE, 0, VM_MEMATTR_UNCACHEABLE);
+ sc->ccb = (void *)kmem_alloc_contig(sz, M_ZERO, 0, ~0, PAGE_SIZE, 0,
+ VM_MEMATTR_UNCACHEABLE);
sc->ccb_phys = vtophys(sc->ccb);
sc->context = (void *)((char *)sc->ccb + \
@@ -411,9 +410,8 @@ boot_firmware(struct sdma_softc *sc)
/* Channel 0 is used for booting firmware */
chn = 0;
- sc->bd0 = (void *)kmem_alloc_contig(kernel_arena,
- PAGE_SIZE, M_ZERO, 0, ~0, PAGE_SIZE, 0,
- VM_MEMATTR_UNCACHEABLE);
+ sc->bd0 = (void *)kmem_alloc_contig(PAGE_SIZE, M_ZERO, 0, ~0, PAGE_SIZE,
+ 0, VM_MEMATTR_UNCACHEABLE);
bd0 = sc->bd0;
sc->ccb[chn].base_bd_ptr = vtophys(bd0);
sc->ccb[chn].current_bd_ptr = vtophys(bd0);