linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: linux-sh@vger.kernel.org
Subject: [Demo/RFC][PATCH 0/2] ARM: shmobile: PM domain with cpuidle on Mackerel
Date: Mon, 13 Aug 2012 22:40:55 +0000	[thread overview]
Message-ID: <201208140040.55978.rjw@sisk.pl> (raw)

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


             reply	other threads:[~2012-08-13 22:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-13 22:40 Rafael J. Wysocki [this message]
2012-08-31 17:47 ` [Demo/RFC][PATCH 0/2] ARM: shmobile: PM domain with cpuidle on Mackerel Daniel Lezcano

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=201208140040.55978.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=linux-sh@vger.kernel.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).