linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] thermal: re-calculate k_po/k_pu when update sustainable power
@ 2016-01-06  8:53 Leo Yan
  2016-01-06  8:53 ` [PATCH v3 1/4] thermal: power_allocator: rework proportional parameter Leo Yan
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Leo Yan @ 2016-01-06  8:53 UTC (permalink / raw)
  To: Jonathan Corbet, Zhang Rui, Eduardo Valentin, Javi Merino,
	Punit Agrawal, Daniel Kurtz, linux-doc, linux-kernel, linux-pm,
	Daniel Thompson
  Cc: Leo Yan

k_po/k_pu are two proportional term constants and essentially they have
fixed ratio compared with sustainable power. In current implementation,
k_po and k_pu are absolute value after calculation and cannot represent
the ratio relationship with sustainable power; as a result, when change
sustainable power we cannot smoothly change proportional term constant.

So this patch series introduces k_po_ratio and k_pu_ratio, which
represent the ratio value compared against sustainable power. Also add
sys file system nodes for them for easily update them from userspace and
update a bit in documentation.

Changes from v2:
* According to Eduardo' comments, move code from thermal_core to
  power_allocator file
* According to Daniel's review, v1 will introduce accumulated rounding
  errors; v2 patches can dismiss this issue

Changes from v1:
* Fix compiling error

Leo Yan (4):
  thermal: power_allocator: rework proportional parameter
  thermal: power_allocator: change k_pu_ratio/k_po_ratio as percentage
  thermal: add sys node for k_pu_ratio/k_po_ratio
  thermal: power_allocator: document k_pu_ratio/k_po_ratio

 Documentation/thermal/power_allocator.txt | 15 +++++++++++----
 drivers/thermal/power_allocator.c         | 18 ++++++++++++------
 drivers/thermal/thermal_core.c            | 23 +++++++++++++++++++++--
 include/linux/thermal.h                   |  4 ++--
 4 files changed, 46 insertions(+), 14 deletions(-)

-- 
1.9.1


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

end of thread, other threads:[~2016-01-06 15:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-06  8:53 [PATCH v3 0/4] thermal: re-calculate k_po/k_pu when update sustainable power Leo Yan
2016-01-06  8:53 ` [PATCH v3 1/4] thermal: power_allocator: rework proportional parameter Leo Yan
2016-01-06  8:53 ` [PATCH v3 2/4] thermal: power_allocator: change k_pu_ratio/k_po_ratio as percentage Leo Yan
2016-01-06  8:53 ` [PATCH v3 3/4] thermal: add sys node for k_pu_ratio/k_po_ratio Leo Yan
2016-01-06  8:53 ` [PATCH v3 4/4] thermal: power_allocator: document k_pu_ratio/k_po_ratio Leo Yan
2016-01-06 10:07 ` [PATCH v3 0/4] thermal: re-calculate k_po/k_pu when update sustainable power Javi Merino
2016-01-06 11:17   ` Leo Yan
2016-01-06 11:21   ` Daniel Thompson
2016-01-06 15:05     ` 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).