Commit fac9567
iommu/arm-smmu-v3: Stop pre-zeroing batch commands
Pre-zeroing the batched commands structure is inefficient, as individual
commands are zeroed later in arm_smmu_cmdq_build_cmd(). The size is quite
large and commonly most commands won't even be used:
struct arm_smmu_cmdq_batch cmds = {};
345c: 52800001 mov w1, #0x0 // #0
3460: d2808102 mov x2, #0x408 // torvalds#1032
3464: 910143a0 add x0, x29, #0x50
3468: 94000000 bl 0 <memset>
Stop pre-zeroing the complete structure and only zero the num member.
Signed-off-by: John Garry <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>1 parent 2cbeaf3 commit fac9567
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
955 | 955 | | |
956 | 956 | | |
957 | 957 | | |
958 | | - | |
| 958 | + | |
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
| 968 | + | |
| 969 | + | |
968 | 970 | | |
969 | 971 | | |
970 | 972 | | |
| |||
1781 | 1783 | | |
1782 | 1784 | | |
1783 | 1785 | | |
1784 | | - | |
| 1786 | + | |
1785 | 1787 | | |
1786 | 1788 | | |
1787 | 1789 | | |
| |||
1805 | 1807 | | |
1806 | 1808 | | |
1807 | 1809 | | |
| 1810 | + | |
| 1811 | + | |
1808 | 1812 | | |
1809 | 1813 | | |
1810 | 1814 | | |
| |||
1852 | 1856 | | |
1853 | 1857 | | |
1854 | 1858 | | |
1855 | | - | |
| 1859 | + | |
1856 | 1860 | | |
1857 | 1861 | | |
1858 | 1862 | | |
| |||
1870 | 1874 | | |
1871 | 1875 | | |
1872 | 1876 | | |
| 1877 | + | |
| 1878 | + | |
1873 | 1879 | | |
1874 | 1880 | | |
1875 | 1881 | | |
| |||
0 commit comments