lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1452070428-2567-1-git-send-email-leo.yan@linaro.org>
Date:	Wed,  6 Jan 2016 16:53:44 +0800
From:	Leo Yan <leo.yan@...aro.org>
To:	Jonathan Corbet <corbet@....net>, Zhang Rui <rui.zhang@...el.com>,
	Eduardo Valentin <edubezval@...il.com>,
	Javi Merino <javi.merino@....com>,
	Punit Agrawal <punit.agrawal@....com>,
	Daniel Kurtz <djkurtz@...omium.org>, linux-doc@...r.kernel.org,
	linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
	Daniel Thompson <daniel.thompson@...aro.org>
Cc:	Leo Yan <leo.yan@...aro.org>
Subject: [PATCH v3 0/4] thermal: re-calculate k_po/k_pu when update sustainable power

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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ