linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Various fixes to weights in the thermal framework
@ 2015-02-18 16:04 Javi Merino
  2015-02-18 16:04 ` [PATCH v3 1/5] thermal: of: fix cooling device weights in device tree Javi Merino
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Javi Merino @ 2015-02-18 16:04 UTC (permalink / raw)
  To: rui.zhang, edubezval; +Cc: linux-pm, Javi Merino

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

Changes since v2[0]:
   - Change the default weight to 0.  For the fair share governor, if
     all weights are 0, cooling devices get the same percentage.

Changes since v1[1]:
   - Fix the call to thermal_zone_bind_cooling_device() in
     drivers/platform/x86/acerhdf.c and drivers/acpi/thermal.c

[0] http://thread.gmane.org/gmane.linux.power-management.general/56269
[1] http://thread.gmane.org/gmane.linux.power-management.general/55730

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                | 31 +++++++++--
 drivers/acpi/thermal.c                             |  9 ++--
 drivers/platform/x86/acerhdf.c                     |  3 +-
 drivers/thermal/db8500_thermal.c                   |  2 +-
 drivers/thermal/fair_share.c                       | 41 +++++++-------
 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                            | 15 ++++--
 12 files changed, 137 insertions(+), 43 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH 0/5] Various fixes to weights in the thermal framework
@ 2015-01-22 17:27 Javi Merino
  0 siblings, 0 replies; 11+ messages in thread
From: Javi Merino @ 2015-01-22 17:27 UTC (permalink / raw)
  To: linux-pm; +Cc: Punit.Agrawal, Kapileshwar.Singh, Javi Merino

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


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

end of thread, other threads:[~2015-02-23 21:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-18 16:04 [PATCH 0/5] Various fixes to weights in the thermal framework Javi Merino
2015-02-18 16:04 ` [PATCH v3 1/5] thermal: of: fix cooling device weights in device tree Javi Merino
2015-02-18 16:04 ` [PATCH v3 2/5] thermal: fair_share: use the weight from the thermal instance Javi Merino
2015-02-19  5:40   ` R, Durgadoss
2015-02-18 16:04 ` [PATCH v3 3/5] thermal: fair_share: fix typo Javi Merino
2015-02-19  5:40   ` R, Durgadoss
2015-02-18 16:04 ` [PATCH v3 4/5] thermal: export weight to sysfs Javi Merino
2015-02-18 16:04 ` [PATCH v3 5/5] thermal: fair_share: generalize the weight concept Javi Merino
2015-02-19 13:36   ` R, Durgadoss
2015-02-23 20:30 ` [PATCH 0/5] Various fixes to weights in the thermal framework Eduardo Valentin
  -- strict thread matches above, loose matches on Subject: below --
2015-01-22 17:27 Javi Merino

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