From: Rob Lee <rob.lee@linaro.org>
To: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Cc: rjw@sisk.pl, len.brown@intel.com, khilman@ti.com,
robherring2@gmail.com, Baohua.Song@csr.com,
amit.kucheria@linaro.org, nicolas.ferre@atmel.com,
linux@maxim.org.za, kgene.kim@samsung.com,
amit.kachhap@linaro.org, magnus.damm@gmail.com, nsekhar@ti.com,
daniel.lezcano@linaro.org, mturquette@linaro.org,
vincent.guittot@linaro.org, arnd.bergmann@linaro.org,
linux-arm-kernel@lists.infradead.org,
linaro-dev@lists.linaro.org, patches@linaro.org,
broonie@opensource.wolfsonmicro.com, nicolas.pitre@linaro.org,
linux@arm.linux.org.uk, jean.pihet@newoldbits.com,
venki@google.com, ccross@google.com, g.trinabh@gmail.com,
kernel@wantstofly.org, lethal@linux-sh.org, jon-hunter@ti.com,
tony@atomide.com, linux-omap@vger.kernel.org,
linux-sh@vger.kernel.org, linux-pm@vger.kernel.org
Subject: Re: [PATCH v7 1/9] cpuidle: Add common time keeping and irq enabling
Date: Thu, 1 Mar 2012 14:42:32 -0600 [thread overview]
Message-ID: <CAMXH7KHn-bLckyXKv3mWM6GY8DQ7yJY9kLteM-xRCFWFTH1Gew@mail.gmail.com> (raw)
In-Reply-To: <4F4EF7FC.9040403@linux.vnet.ibm.com>
Hello Deepthi,
On Wed, Feb 29, 2012 at 10:15 PM, Deepthi Dharwar
<deepthi@linux.vnet.ibm.com> wrote:
> Hi Rob,
>
> On 03/01/2012 06:12 AM, Robert Lee wrote:
>
>> Make necessary changes to implement time keeping and irq enabling
>> in the core cpuidle code. This will allow the removal of these
>> functionalities from various platform cpuidle implementations whose
>> timekeeping and irq enabling follows the form in this common code.
>
>
> The generic cpuidle changes look good, but is there a reason as
> to why these changes are enabled only for ARM and not other
> archs ?
>
Besides ARM, this patchset also enables some of this new consolidation
functionality on arch/SH and for archs that use the
CONFIG_ARCH_HAS_CPU_RELAX (maybe x86 uses this?).
For the powerpc P-series, it could probably could be modified to use
the consolidated timekeeping but I didn't feel comfortable making that
change myself for a couple of reasons. First, the common wrapper also
includes the local_irq_enable() call, but the p-series cpuidle code
doesn't include this call, as instead, it relies on the
local_irq_enable() call in the cpu_idle() function in
arch/powerpc/kernel/idle.c. Is it OK to remove this
local_irq_enable() once the wrapper is used? Second, is there any
special coordination needed with the timekeeping functions and the
mfspr() calls?
Looking at the intel and acpi cpuidle implementations, their current
organization does seem to be able to use the common time keeping / irq
enabling wrapper. Upon first glance, it appears that there are
special timer/timekeeping requirements for x86 that aren't required by
other platforms. But that may not be correct.
If you look back at v4 of this patch series, you'll see an attempt at
a common timekeeping that could be used by x86 and acpi , but it
causes other compromises that to me aren't worth the extra gain from a
100% common timekeeping / irq enable solution. I requested
feedback/opinions on this issue after v4 but didn't hear anything
about changes made to the intel or acpi implementations. So I
continued on with the common wrapper direction from v3 when making v5.
Ultimately, even if the consolidated code only can be used by most and
not all arch or platform cpuidle implementations, it still reduces
some platform cpuidle fragmentation and duplicated code and hopefully
improves the maintainability of the core cpuidle.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-03-01 20:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 0:42 [PATCH v7 0/9] Consolidate cpuidle functionality Robert Lee
2012-03-01 0:42 ` [PATCH v7 1/9] cpuidle: Add common time keeping and irq enabling Robert Lee
2012-03-01 4:15 ` Deepthi Dharwar
2012-03-01 20:42 ` Rob Lee [this message]
2012-03-01 0:42 ` [PATCH v7 2/9] ARM: at91: Consolidate time keeping and irq enable Robert Lee
2012-03-01 0:42 ` [PATCH v7 3/9] ARM: exynos: " Robert Lee
2012-03-01 0:42 ` [PATCH v7 4/9] ARM: kirkwood: " Robert Lee
2012-03-01 0:42 ` [PATCH v7 5/9] ARM: davinci: " Robert Lee
2012-03-01 0:42 ` [PATCH v7 6/9] ARM: omap: Consolidate OMAP3 " Robert Lee
2012-03-01 0:42 ` [PATCH v7 7/9] ARM: omap: Consolidate OMAP4 " Robert Lee
2012-03-01 0:42 ` [PATCH v7 8/9] ARM: shmobile: Consolidate " Robert Lee
2012-03-01 0:42 ` [PATCH v7 9/9] SH: " Robert Lee
2012-03-01 20:57 ` [PATCH v7 0/9] Consolidate cpuidle functionality Rob Lee
2012-03-05 16:43 ` Daniel Lezcano
2012-03-05 21:33 ` Kevin Hilman
2012-03-09 1:58 ` [git pull] " Rob Lee
2012-03-09 6:40 ` Stephen Rothwell
2012-03-12 18:45 ` Rob Lee
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=CAMXH7KHn-bLckyXKv3mWM6GY8DQ7yJY9kLteM-xRCFWFTH1Gew@mail.gmail.com \
--to=rob.lee@linaro.org \
--cc=Baohua.Song@csr.com \
--cc=amit.kachhap@linaro.org \
--cc=amit.kucheria@linaro.org \
--cc=arnd.bergmann@linaro.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=ccross@google.com \
--cc=daniel.lezcano@linaro.org \
--cc=deepthi@linux.vnet.ibm.com \
--cc=g.trinabh@gmail.com \
--cc=jean.pihet@newoldbits.com \
--cc=jon-hunter@ti.com \
--cc=kernel@wantstofly.org \
--cc=kgene.kim@samsung.com \
--cc=khilman@ti.com \
--cc=len.brown@intel.com \
--cc=lethal@linux-sh.org \
--cc=linaro-dev@lists.linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=linux@maxim.org.za \
--cc=magnus.damm@gmail.com \
--cc=mturquette@linaro.org \
--cc=nicolas.ferre@atmel.com \
--cc=nicolas.pitre@linaro.org \
--cc=nsekhar@ti.com \
--cc=patches@linaro.org \
--cc=rjw@sisk.pl \
--cc=robherring2@gmail.com \
--cc=tony@atomide.com \
--cc=venki@google.com \
--cc=vincent.guittot@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;
as well as URLs for NNTP newsgroup(s).