diff options
author | Sumit Gupta <sumitg@nvidia.com> | 2023-10-04 19:35:37 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2023-10-10 11:03:03 +0530 |
commit | a60a556788752a5696960ed11409a552b79e68e8 (patch) | |
tree | 8387a88193df05662637d9c1030d0d7d18578eb8 /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | 6b121b4cf7e1f598beecf592d6184126b46eca46 (diff) |
cpufreq: tegra194: use refclk delta based loop instead of udelay
Use reference clock count based loop instead of "udelay()" for
sampling of counters to improve the accuracy of re-generated CPU
frequency. "udelay()" internally calls "WFE" which stops the
counters and results in bigger delta between the last set freq
and the re-generated value from counters. The counter sampling
window used in loop is the minimum number of reference clock
cycles which is known to give a stable value of CPU frequency.
The change also helps to reduce the sampling window from "500us"
to "<50us".
Suggested-by: Antti Miettinen <amiettinen@nvidia.com>
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions