diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2017-11-27 15:33:28 +0100 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2018-01-02 17:36:53 +0100 |
commit | 2f20fc4fc9db236dc3806a93e78c7575c9561590 (patch) | |
tree | 1bd4361476757d25541fca7fc68b421cc6221320 /drivers/gpu/drm/etnaviv | |
parent | 2e3a2dda2515cc85b8600e3d8a20d1d4a9100ebd (diff) | |
download | linux-stable-2f20fc4fc9db236dc3806a93e78c7575c9561590.tar.gz linux-stable-2f20fc4fc9db236dc3806a93e78c7575c9561590.tar.bz2 linux-stable-2f20fc4fc9db236dc3806a93e78c7575c9561590.zip |
drm/etnaviv: use memset32 to init pagetable
Now that memset32 is available, the open-coded pagetable initialization
loop can be replaced.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_iommu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_iommu.c b/drivers/gpu/drm/etnaviv/etnaviv_iommu.c index 14e24ac6573f..7a8c94731748 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_iommu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_iommu.c @@ -70,9 +70,8 @@ static int __etnaviv_iommu_init(struct etnaviv_iommuv1_domain *etnaviv_domain) return -ENOMEM; } - for (i = 0; i < PT_ENTRIES; i++) - etnaviv_domain->pgtable_cpu[i] = - etnaviv_domain->base.bad_page_dma; + memset32(etnaviv_domain->pgtable_cpu, etnaviv_domain->base.bad_page_dma, + PT_ENTRIES); return 0; } |