From: Viresh Kumar <viresh.kumar@linaro.org> To: vichy <vichy.kuo@gmail.com> Cc: "cpufreq@vger.kernel.org" <cpufreq@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, Linux PM list <linux-pm@vger.kernel.org> Subject: Re: about system time incorrect after changing cpu frequency Date: Tue, 1 Sep 2015 11:32:36 +0530 [thread overview] Message-ID: <20150901060236.GB1456@linux> (raw) In-Reply-To: <CAOVJa8HNQ-s=yDfADCcoL+r22ALpHFtTjWZ=oxTkBUriYbCk+Q@mail.gmail.com> 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
WARNING: multiple messages have this Message-ID (diff)
From: viresh.kumar@linaro.org (Viresh Kumar) To: linux-arm-kernel@lists.infradead.org Subject: about system time incorrect after changing cpu frequency Date: Tue, 1 Sep 2015 11:32:36 +0530 [thread overview] Message-ID: <20150901060236.GB1456@linux> (raw) In-Reply-To: <CAOVJa8HNQ-s=yDfADCcoL+r22ALpHFtTjWZ=oxTkBUriYbCk+Q@mail.gmail.com> 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
next prev parent reply other threads:[~2015-09-01 6:02 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 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 [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20150901060236.GB1456@linux \ --to=viresh.kumar@linaro.org \ --cc=cpufreq@vger.kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-pm@vger.kernel.org \ --cc=vichy.kuo@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.