]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
memory: tegra264: drop redundant tegra264_mc_icc_aggregate()
authorSumit Gupta <sumitg@nvidia.com>
Wed, 27 May 2026 14:01:26 +0000 (19:31 +0530)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 9 Jun 2026 15:00:30 +0000 (17:00 +0200)
commite23d87a69e827b60fb985236a0984bacb3b68a19
treea1a44fec74ecbc9a154cf0dd7ea55a6eb663c3ef
parent2e05f3d6005d9aa3e2e423d2471f290d9ccbe3d2
memory: tegra264: drop redundant tegra264_mc_icc_aggregate()

tegra264_mc_icc_aggregate() does nothing on top of icc_std_aggregate
except an early return on !mc->bwmgr_mrq_supported.
tegra264_mc_icc_set() already returns early on the same condition,
before reading any of the aggregated avg_bw / peak_bw values.  This
makes the early return in aggregate() redundant.  So, set
tegra264_mc_icc_ops.aggregate to icc_std_aggregate and drop the
helper.

Reported-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20260527140127.49172-3-sumitg@nvidia.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/tegra/tegra264.c