]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
memory: tegra: Reword and correct comments
authorDiogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
Thu, 4 Jul 2024 11:31:22 +0000 (12:31 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 29 Jul 2024 15:35:20 +0000 (17:35 +0200)
Fix incorrect comment on periodic_compensation_handler() as the call
update_clock_tree_delay() with DVFS_UPDATE is responsible for dividing
the samples accumulated up to that point and comparing the computed
values with the currently programmed ones. While at it fix the
indentation of a nearby comment.

Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
Link: https://lore.kernel.org/r/20240704-tegra210_emcfreq-v4-3-3e450503c555@tecnico.ulisboa.pt
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/tegra/tegra210-emc-cc-r21021.c

index a3525f3b8145b90dfb4e4d32190462329e4b3753..a9e19dfa985650240e6d95ad98cffa45d88fcbee 100644 (file)
@@ -451,18 +451,12 @@ static u32 periodic_compensation_handler(struct tegra210_emc *emc, u32 type,
                        __MOVAVG(next, C1D1U1) = 0;
 
                        for (i = 0; i < samples; i++) {
-                               /*
-                                * Generate next sample of data.
-                                */
+                               /* Generate next sample of data. */
                                adel = update_clock_tree_delay(emc, DVFS_PT1);
                        }
                }
 
-               /*
-                * Seems like it should be part of the
-                * 'if (last_timing->periodic_training)' conditional
-                * since is already done for the else clause.
-                */
+               /* Do the division part of the moving average */
                adel = update_clock_tree_delay(emc, DVFS_UPDATE);
        }