From: Mason <mpeg.blue@free.fr>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Linux PM <linux-pm@vger.kernel.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
cpufreq <cpufreq@vger.kernel.org>,
Linux ARM <linux-arm-kernel@lists.infradead.org>
Subject: Re: How many frequencies would cpufreq optimally like to manage?
Date: Tue, 25 Nov 2014 22:52:31 +0100 [thread overview]
Message-ID: <5474FA1F.50603@free.fr> (raw)
In-Reply-To: <CAKohponats3ZNqaRq+2ff4Vd=iMZHVy17Vs1K+Zmc_D47Br2+A@mail.gmail.com>
On 25/11/2014 16:19, Viresh Kumar wrote:
> On 25 November 2014 at 18:32, Mason <mpeg.blue@free.fr> wrote:
>
>> As far as I can tell, on my SoC, the timer runs at 27 MHz.
>> But I have no idea how often it fires an interrupt.
>
> 27 MHz is the freq it runs at, but we get interrupt based on the value
> programmed in the timer counter.
>
> Look for CONFIG_HZ in your .config, that will tell you number of ticks
> you are getting per second.
>
> But cpufreq works in another level and so it doesn't depend on both
> these.
If I remember correctly (please correct me if I am mistaken),
the kernel keeps a list of timers, ordered by deadline, and
dynamically configures the system timer to fire at the next
deadline.
> Look for: /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
> this is the rate at which cpufreq core checks if cpu's freq require revisiting.
I think setting the sampling rate to 50 ms should make the
system reactive enough to load swings?
>> This 'struct clk' is an elusive beast.
>> Where is it defined? I only run into forward declarations.
>
> Its architecture specific. What's the architecture you are working on?
> You may implement your own routine instead of cpufreq_generic_get().
The SoC is made by Sigma Designs. It is based on the ARM Cortex-A9.
> Yes. Documentation/clk.txt.
Oh boy! platform, device tree, cpu-freq, cpuidle, clk, ... so much
to learn, so few hours in a day.
> Yeah. You should be able to get some call from your architecture.
OK, I have to fix that function along with the cpufreq update.
Regards.
next prev parent reply other threads:[~2014-11-25 21:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 23:24 How many frequencies would cpufreq optimally like to manage? Mason
2014-11-20 9:13 ` Viresh Kumar
2014-11-20 14:20 ` Mason
2014-11-21 3:36 ` Viresh Kumar
2014-11-25 13:02 ` Mason
2014-11-25 15:19 ` Viresh Kumar
2014-11-25 21:52 ` Mason [this message]
2014-11-26 4:14 ` 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=5474FA1F.50603@free.fr \
--to=mpeg.blue@free.fr \
--cc=cpufreq@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=viresh.kumar@linaro.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox