]> 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)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Thu, 10 Apr 2014 12:21:02 +0000 (05:21 -0700)
commit7cb44192bfc117c1642e2b8af67cacff8a5304be
tree6d172af0b9daa5a9eadd70cb856894e67fe241a1
parentfee2e9af4a3ae76534df8e929f66e2b3138da888
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
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Steve Rogers <srogers@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/edp/sysedp_batmon_calc.c
drivers/edp/sysedp_internal.h
drivers/edp/sysedp_sysfs.c