iommu/arm-smmu-v3: Stop pre-zeroing batch commands in arm_smmu_atc_inv_master()
authorZhen Lei <thunder.leizhen@huawei.com>
Tue, 17 Aug 2021 11:34:11 +0000 (19:34 +0800)
committerWill Deacon <will@kernel.org>
Mon, 4 Oct 2021 11:20:50 +0000 (12:20 +0100)
commit93f9f7958f12a1703799442011dd5f18db893c13
treedc114511632674c38c71685fb2b37aa78917de4a
parent5816b3e6577eaa676ceb00a848f0fd65fe2adc29
iommu/arm-smmu-v3: Stop pre-zeroing batch commands in arm_smmu_atc_inv_master()

Pre-zeroing the batched commands structure is inefficient, as individual
commands are zeroed later in arm_smmu_cmdq_build_cmd(). Therefore, only
the member 'num' needs to be initialized to 0.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/20210817113411.1962-1-thunder.leizhen@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c