From: Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha-5wv7dgnIgG8@public.gmane.org>
To: viresh kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: "linaro-dev-cunTk1MwBs8s++Sfvej+rw@public.gmane.org"
<linaro-dev-cunTk1MwBs8s++Sfvej+rw@public.gmane.org>,
"linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Sudeep KarkadaNagesha
<Sudeep.KarkadaNagesha-5wv7dgnIgG8@public.gmane.org>,
spear-devel <spear-devel-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org>,
"cpufreq-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<cpufreq-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>
Subject: Re: [Query]: CPUFREQ: Affected and related cpus in cpufreq
Date: Wed, 10 Oct 2012 13:01:26 +0100 [thread overview]
Message-ID: <50756396.9040705@arm.com> (raw)
In-Reply-To: <CAOh2x=mJUkRxwwTRh89-Xpm1WwB9ciDOXVohqoTu6B5k6meHdw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Viresh,
On 08/10/12 14:58, viresh kumar wrote:
> Hi All,
>
> Sorry for asking one of the most basic question of cpufreq :(
>
> I couldn't get the difference between affected (policy->cpus) and
> related cpus (policy->related_cpus) in cpufreq...
>
> As per Documentation/code:
>
> affected_cpus(policy->cpus):
> - List of CPUs that require software coordination of frequency.
> - Processors part of affected_cpus share policy struct
> - Policy limits the frequencies that the processor can work with.
>
> related_cpus(policy->related_cpus):
> - List of CPUs that need some sort of frequency coordination, whether
> software or hardware.
> - Processors part of related_cpus share governer.
Which document states this ?
As per my understanding and if you see in cpufreq.c, related_cpus are
used only when adding back the hotplugged cpu to get the governor.
Elsewhere affected_cpus is used.
Ideally it would be good if above statements is true.
E.g. In SMP with 4 CPUs(with same OPPs), if 0-1 and 2-3 need h/w
co-ordination, then:
related_cpus: 0-1 and 2-3
affected_cpus: case#1: 0-1 and 2-3 if we want to have different policies
case#2: 0-3 if we want to have same policy on all CPUS
I believe this is not possible in current code.
> - Governer sets the rules, about when to change limits specified by policy.
>
> Correct?
>
> So, now comes the real question:
> - In which scenario's should we populate affected and related cpus?
> - Should related cpus will always be a superset of affected cpus?
>
> --
> Viresh
>
next prev parent reply other threads:[~2012-10-10 12:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-08 13:58 [Query]: CPUFREQ: Affected and related cpus in cpufreq viresh kumar
[not found] ` <CAOh2x=mJUkRxwwTRh89-Xpm1WwB9ciDOXVohqoTu6B5k6meHdw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-10 12:01 ` Sudeep KarkadaNagesha [this message]
2012-10-10 13:26 ` Viresh Kumar
2012-10-10 13:44 ` Sudeep KarkadaNagesha
2012-10-10 14:07 ` Viresh Kumar
2013-07-01 6:20 ` 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=50756396.9040705@arm.com \
--to=sudeep.karkadanagesha-5wv7dgnigg8@public.gmane.org \
--cc=cpufreq-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linaro-dev-cunTk1MwBs8s++Sfvej+rw@public.gmane.org \
--cc=linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rjw-KKrjLPT3xs0@public.gmane.org \
--cc=spear-devel-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org \
--cc=viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.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 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.