linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Demo/RFC][PATCH 0/2] ARM: shmobile: PM domain with cpuidle on Mackerel
@ 2012-08-13 22:40 Rafael J. Wysocki
  2012-08-31 17:47 ` Daniel Lezcano
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael J. Wysocki @ 2012-08-13 22:40 UTC (permalink / raw)
  To: linux-sh

Hi,

I normally don't post demo patches, but in this particular case it would be
quite difficult to implement the desired functionality on the actual hardware,
due to some complicated dependencies present in there.

The first of the following two patches adds a software-only "device" to the
Mackerel configuration and a driver for it allowing it to be turned "off"
and "on" on demand from user space, via sysfs (the device is initially "on").
This is just a variant of the very simple code I used during my LinuxCon Japan
presentation earlier this way.

The second patch adds a PM domain object and makes the "fake" device added
by the previous patch belong to it.  At the same time, it uses the mechanism
introduced by commit cbc9ef0 (PM / Domains: Add preliminary support for
cpuidle, v2) to connect cpuidle state 3 to that PM domain.  This way, cpuidle
state 3 is not used initially until the "fake" device is turned "off" via
sysfs (which makes the A3SM domain to be turned "off" and enable cpuidle state
3).  Then, if the "fake" device is turned "on" via sysfs (which makes the A3SM
domain turn "on") cpuidle state 3 is disabled and state 2 becomes the deepest
one available.

The patches in this series are on top of the current linux-next branch of the
linux-pm.git tree with the following patches applied:

https://patchwork.kernel.org/patch/1303111/
https://patchwork.kernel.org/patch/1309171/
https://patchwork.kernel.org/patch/1309151/
https://patchwork.kernel.org/patch/1312431/
https://patchwork.kernel.org/patch/1312421/
https://patchwork.kernel.org/patch/1317311/
https://patchwork.kernel.org/patch/1317271/
https://patchwork.kernel.org/patch/1317251/

Thanks,
Rafael


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Demo/RFC][PATCH 0/2] ARM: shmobile: PM domain with cpuidle on Mackerel
  2012-08-13 22:40 [Demo/RFC][PATCH 0/2] ARM: shmobile: PM domain with cpuidle on Mackerel Rafael J. Wysocki
@ 2012-08-31 17:47 ` Daniel Lezcano
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Lezcano @ 2012-08-31 17:47 UTC (permalink / raw)
  To: linux-sh

On 08/14/2012 12:40 AM, Rafael J. Wysocki wrote:
> Hi,
> 
> I normally don't post demo patches, but in this particular case it would be
> quite difficult to implement the desired functionality on the actual hardware,
> due to some complicated dependencies present in there.

Thanks a lot Rafael for taking the time to write this demo code.

It is very interesting and probably what should do in the other cpuidle
drivers.

Thanks
  -- Daniel

-- 
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-31 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13 22:40 [Demo/RFC][PATCH 0/2] ARM: shmobile: PM domain with cpuidle on Mackerel Rafael J. Wysocki
2012-08-31 17:47 ` Daniel Lezcano

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).