Re: about system time incorrect after changing cpu frequency
Viresh Kumar <[email protected]> Tue, 1 Sep 2015 11:32:36 +0530
| Newsgroups | org.kernel.vger.cpufreq,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-pm |
|---|---|
| Message-ID | <20150901060236.GB1456@linux> |
On 01-09-15, 13:36, vichy wrote: > >> I try to call below 2 functions to change the frequency of clocksource > >> and clockevent, but the above b) sleep time is still incorrect when > >> cpu runs in 500Mhz. > >> clockevents_update_freq(this_cpu_ptr(gt_evt), gt_clk_rate); > >> __clocksource_updatefreq_hz(>_clocksource, gt_clk_rate); How and when were you calling them? What kernel version is it ? > Clock Event Device: arm_global_timer This driver doesn't have support to update clkevt device's freq. You may need to modify that based on how arch/arm/kernel/smp_twd.c is updated. look for: clockevents_update_freq(). -- viresh