From: Kevin Hilman <khilman@ti.com>
To: "Menon, Nishanth" <nm@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>, linux-omap@vger.kernel.org
Subject: Re: [PATCH][pm-wip/cpufreq] OMAP2+: CPUfreq: Remove superfluous check in target() for online CPU's.
Date: Mon, 06 Jun 2011 16:04:29 -0700 [thread overview]
Message-ID: <87r576v9xe.fsf@ti.com> (raw)
In-Reply-To: <BANLkTindbwTeYLt7c25PRO3eDn9E=mg3Dg@mail.gmail.com> (Nishanth Menon's message of "Mon, 6 Jun 2011 11:56:52 -0500")
"Menon, Nishanth" <nm@ti.com> writes:
> On Fri, Jun 3, 2011 at 07:16, Santosh Shilimkar
> <santosh.shilimkar@ti.com> wrote:
>> Current OMAP2PLUS CPUfreq tagret() functions returns when all
>> the CPU's are not online. This breaks CPUfreq when secondary CPUs
>> are offlined on SMP system.
>>
>> The intention of that check was just avoid CPU frequency change
>> during the window when CPU becomes online but it's cpufreq_init is
>> not done yet. Otherwise it can lead to notifiers being sent on
>> a CPU which is not yet registered to the governor.
>>
>> But this race conditions is already managed by the CPUfreq
>> core driver by updating the available cpumask accordingly.
>>
>> OMAP CPUFReq driver make use same cpumask for the notifiers
>> so the above problem doesn't exist. In my initial implementation
>> of the OMAP4 CPUFreq driver, I was using 'for_each_online_cpu()'
>> for notifiers which lead me to add that check. Later I fixed
>> the notifies but didn't realise that the check has become
>> redundant then.
>>
>> Fix it by removing the superfluous check in target().
>>
>> Thanks for Nishant Menon <nm@ti.com> for reporting issue
>> with hot-plug and Kevin Hilman <khilman@ti.com> for his
>> comment on excessive check in target().
>>
>> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
>> Reported-by: Nishanth Menon <nm@ti.com>
>> Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
>> Cc: Kevin Hilman <khilman@ti.com>
>
> Tested-by: Nishanth Menon <nm@ti.com>
Thanks, applied to pm-wip/cpufreq
Kevin
prev parent reply other threads:[~2011-06-06 23:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-03 12:16 [PATCH][pm-wip/cpufreq] OMAP2+: CPUfreq: Remove superfluous check in target() for online CPU's Santosh Shilimkar
2011-06-06 16:56 ` Menon, Nishanth
2011-06-06 23:04 ` Kevin Hilman [this message]
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=87r576v9xe.fsf@ti.com \
--to=khilman@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=nm@ti.com \
--cc=santosh.shilimkar@ti.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: 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.