]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
EDP: add userspace knob to update ESR value
authorTimo Alho <talho@nvidia.com>
Tue, 26 Nov 2013 18:07:18 +0000 (20:07 +0200)
committerMrutyunjay Sawant <msawant@nvidia.com>
Mon, 14 Apr 2014 13:48:02 +0000 (06:48 -0700)
commit43a683eba3c5f706a9faed2304fc582fef05f84c
tree701a841e2104323359d089541133e1c87351d8db
parent4d4a0c272cedf4eb8dc6bea5c89ba1f264ecb01b
EDP: add userspace knob to update ESR value

This patch adds a sysfs entry /sys/power/sysedp/batmon/esr. This
allows an user space process to update the current ESR value seen by
the sysedp_batmon_calc component.

sysedp_batmon_calc will compute the ratio between internal table based
ESR estimate and value set from user space. This ratio will be then
used to scale all future table based ESR estimations.

Bug 1400509

Change-Id: Ia409826f793afef4e4c8d1e42010ff31e529f827
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/337378
(cherry picked from commit 7cb44192bfc117c1642e2b8af67cacff8a5304be)
Reviewed-on: http://git-master/r/395107
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Rogers <srogers@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
drivers/edp/sysedp_batmon_calc.c
drivers/edp/sysedp_internal.h
drivers/edp/sysedp_sysfs.c