lkml.org 
[lkml]   [2023]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [Patch] driver: cpufreq: use refclk delta based loop instead of udelay
From


On 01/09/23 21:28, Jon Hunter wrote:
>
>
> On 01/09/2023 16:20, Sumit Gupta wrote:
>> 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>
>
>
> Please can you correct the subject and drop the 'driver:'.
>
> Jon
>

Corrected subject and added another patch in v2 at [1].

[1] https://lore.kernel.org/lkml/20230901164113.29139-1-sumitg@nvidia.com/

Thank you,
Sumit Gupta

\
 
 \ /
  Last update: 2023-09-01 18:51    [W:0.059 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site