All of lore.kernel.org
 help / color / mirror / Atom feed
* about system time incorrect after changing cpu frequency
@ 2015-08-31 14:03 ` vichy
  0 siblings, 0 replies; 16+ messages in thread
From: vichy @ 2015-08-31 14:03 UTC (permalink / raw)
  To: linux-arm-kernel

hi all:
My platform is like below:
1. single core Cortex A9
2. use global timer for system timer

after I porting cpu frequency driver based on snow ball, the cpu
frequency did change as I expected.
But the system time is incorrect( since pherial clk is got from cpu frequency)

for example:
a) cpu 1G (pherial clk = 250M) --> sleep 1 sec (OK)
b) cpu 500M  (pherial clk = 125M) --> sleep 1 sec (will be measured as 2 sec)

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(&gt_clocksource, gt_clk_rate);

in Arm cortex A9 single core system with Global timer as system timer,
is there any kernel api to change system timer period when cpu/pherial
frequency change?

appreciate your kind help in advance,

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-09-01  7:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-31 14:03 about system time incorrect after changing cpu frequency vichy
2015-08-31 14:03 ` vichy
2015-09-01  3:57 ` Viresh Kumar
2015-09-01  3:57   ` Viresh Kumar
2015-09-01  5:36   ` vichy
2015-09-01  5:36     ` vichy
2015-09-01  6:02     ` Viresh Kumar
2015-09-01  6:02       ` Viresh Kumar
2015-09-01  6:39       ` Jisheng Zhang
2015-09-01  6:39         ` Jisheng Zhang
2015-09-01  7:37         ` vichy
2015-09-01  7:37           ` vichy
2015-09-01  7:21       ` vichy
2015-09-01  7:21         ` vichy
2015-09-01  7:42         ` Viresh Kumar
2015-09-01  7:42           ` Viresh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.