All of lore.kernel.org
 help / color / mirror / Atom feed
From: Javi Merino <javi.merino@arm.com>
To: linux-pm@vger.kernel.org
Cc: Punit.Agrawal@arm.com, Kapileshwar.Singh@arm.com,
	Javi Merino <javi.merino@arm.com>
Subject: [PATCH 0/5] Various fixes to weights in the thermal framework
Date: Thu, 22 Jan 2015 17:27:00 +0000	[thread overview]
Message-ID: <1421947625-19708-1-git-send-email-javi.merino@arm.com> (raw)

Weights can be specified in the device tree, but the code currently
ignores the value.  Patch 1 fixes that by putting the weight in the
thermal_instance.  Patches 2-3 simplifies the code in the fair share
governor by using the weight in the now populated thermal_instance.
Patch 4 exports the weight to sysfs.  Patch 5 drops the requirement of
all weights needing to add up to a hundred.

Existing thermal zones using this governor should still work, as these
series shouldn't make any functional change for them.  However,
thermal zones that previously weren't able to use the fair share
governor (because they were being register through device tree or
because they weren't populating thermal_bind_params) now populate the
weight properly and are able to use the governor.

Javi Merino (4):
  thermal: fair_share: use the weight from the thermal instance
  thermal: fair_share: fix typo
  thermal: export weight to sysfs
  thermal: fair_share: generalize the weight concept

Kapileshwar Singh (1):
  thermal: of: fix cooling device weights in device tree

 Documentation/thermal/sysfs-api.txt                | 27 ++++++++--
 drivers/thermal/db8500_thermal.c                   |  2 +-
 drivers/thermal/fair_share.c                       | 38 ++++++-------
 drivers/thermal/imx_thermal.c                      |  3 +-
 drivers/thermal/of-thermal.c                       |  5 +-
 drivers/thermal/samsung/exynos_thermal_common.c    |  3 +-
 drivers/thermal/thermal_core.c                     | 62 +++++++++++++++++++---
 drivers/thermal/thermal_core.h                     |  3 ++
 drivers/thermal/ti-soc-thermal/ti-thermal-common.c |  3 +-
 include/linux/thermal.h                            | 19 +++++--
 10 files changed, 126 insertions(+), 39 deletions(-)

-- 
1.9.1


             reply	other threads:[~2015-01-22 17:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-22 17:27 Javi Merino [this message]
2015-01-22 17:27 ` [PATCH 1/5] thermal: of: fix cooling device weights in device tree Javi Merino
2015-01-31  0:00   ` Eduardo Valentin
2015-02-01 12:21     ` Javi Merino
2015-01-22 17:27 ` [PATCH 2/5] thermal: fair_share: use the weight from the thermal instance Javi Merino
2015-01-22 17:27 ` [PATCH 3/5] thermal: fair_share: fix typo Javi Merino
2015-01-22 17:27 ` [PATCH 4/5] thermal: export weight to sysfs Javi Merino
2015-01-22 17:27 ` [PATCH 5/5] thermal: fair_share: generalize the weight concept Javi Merino
2015-02-18 16:04 [PATCH 0/5] Various fixes to weights in the thermal framework Javi Merino
2015-02-23 20:30 ` 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=1421947625-19708-1-git-send-email-javi.merino@arm.com \
    --to=javi.merino@arm.com \
    --cc=Kapileshwar.Singh@arm.com \
    --cc=Punit.Agrawal@arm.com \
    --cc=linux-pm@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 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.