linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amit Daniel Kachhap <amit.kachhap@linaro.org>
To: linux-pm@lists.linux-foundation.org
Cc: linaro-dev@lists.linaro.org, patches@linaro.org,
	linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
	rob.lee@linaro.org
Subject: [PATCH 0/4] thermal: Adding generic cpu cooling devices
Date: Wed, 22 Feb 2012 15:44:06 +0530	[thread overview]
Message-ID: <1329905650-30161-1-git-send-email-amit.kachhap@linaro.org> (raw)

Changes since RFC:
 *Changed the cpu cooling registration/unregistration API's to instance based
 *Changed the STATE_ACTIVE trip type to pass correct instance id
 *Adding support to restore back the policy->max_freq after doing frequency 
  clipping.
 *Moved the trip cooling stats from sysfs node to debugfs node as suggested
  by Greg KH greg@kroah.com 
 *Incorporated several review comments from eduardo.valentin@ti.com

Todo:
 *Report time spent in each trip point along with the cooling statistics
 *Add opp library support in cpufreq cooling api's

Brief Description:

1) The generic cooling devices code is placed inside driver/thermal/* as 
placing inside acpi folder will need un-necessary enabling of acpi code.

2) This patchset adds a new trip type THERMAL_TRIP_STATE_ACTIVE which passes
cooling device instance number and may be helpful for cpufreq cooling devices
to take the correct cooling action.

3) This patchset adds generic cpu cooling low level implementation through
frequency clipping and cpu hotplug. In future, other cpu related cooling
devices may be added here. An ACPI version of this already exists
(drivers/acpi/processor_thermal.c). But this will be useful for platforms
like ARM using the generic thermal interface along with the generic cpu
cooling devices. The cooling device registration API's return cooling device
pointers which can be easily binded with the thermal zone trip points.

4)This patchset provides a simple way of reporting cooling achieved in a
trip type. This will help in fine cooling the cooling devices attached.

Amit Daniel Kachhap (4):
  thermal: Add a new trip type to use cooling device instance number
  thermal: Add generic cpufreq cooling implementation
  thermal: Add generic cpuhotplug cooling implementation
  thermal: Add support to report cooling statistics achieved by cooling
    devices

 Documentation/thermal/cpu-cooling-api.txt |   57 ++++
 Documentation/thermal/sysfs-api.txt       |    4 +-
 drivers/thermal/Kconfig                   |   11 +
 drivers/thermal/Makefile                  |    1 +
 drivers/thermal/cpu_cooling.c             |  484 +++++++++++++++++++++++++++++
 drivers/thermal/thermal_sys.c             |  165 ++++++++++-
 include/linux/cpu_cooling.h               |   71 +++++
 include/linux/thermal.h                   |   14 +
 8 files changed, 802 insertions(+), 5 deletions(-)
 create mode 100644 Documentation/thermal/cpu-cooling-api.txt
 create mode 100644 drivers/thermal/cpu_cooling.c
 create mode 100644 include/linux/cpu_cooling.h

             reply	other threads:[~2012-02-22 10:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-22 10:14 Amit Daniel Kachhap [this message]
2012-02-22 10:14 ` [PATCH 1/4] thermal: Add a new trip type to use cooling device instance number Amit Daniel Kachhap
2012-02-23  6:46   ` R, Durgadoss
2012-02-23 11:20     ` Amit Kachhap
2012-04-03 14:15       ` [linux-pm] " Eduardo Valentin
2012-04-04  4:23         ` Amit Kachhap
2012-04-04  6:27           ` Eduardo Valentin
2012-02-22 10:14 ` [PATCH 2/4] thermal: Add generic cpufreq cooling implementation Amit Daniel Kachhap
     [not found]   ` <1329905650-30161-3-git-send-email-amit.kachhap-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-02-22 10:58     ` Peter Meerwald
2012-02-24 11:04   ` R, Durgadoss
2012-02-27  4:32     ` Amit Kachhap
2012-03-11  4:11   ` [linux-pm] " Sundar
2012-03-13  5:07     ` Amit Kachhap
2012-03-13  9:45       ` [linux-pm] " Sundar
2012-03-13 10:00         ` Amit Kucheria
2012-03-13 10:14           ` Sundar
2012-03-13 10:52             ` Amit Kachhap
2012-03-13 11:43               ` Sundar
2012-02-22 10:14 ` [PATCH 3/4] thermal: Add generic cpuhotplug " Amit Daniel Kachhap
2012-02-22 10:14 ` [PATCH 4/4] thermal: Add support to report cooling statistics achieved by cooling devices Amit Daniel Kachhap
2012-02-22 15:45 ` [linux-pm] [PATCH 0/4] thermal: Adding generic cpu " Eduardo Valentin

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=1329905650-30161-1-git-send-email-amit.kachhap@linaro.org \
    --to=amit.kachhap@linaro.org \
    --cc=linaro-dev@lists.linaro.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=patches@linaro.org \
    --cc=rob.lee@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).