diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2013-12-04 11:12:59 -0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-12-05 02:05:48 +0100 |
commit | 95677a9a3847de4f37e0f463aeb94aa8d5cccc50 (patch) | |
tree | e26ce006b6ad9735d7b85290a567713f8fd10f7e /usr | |
parent | 08ff4cbe10da402e7c493ac72e298975f62a9e78 (diff) | |
download | op-kernel-dev-95677a9a3847de4f37e0f463aeb94aa8d5cccc50.zip op-kernel-dev-95677a9a3847de4f37e0f463aeb94aa8d5cccc50.tar.gz |
PowerCap: Fix mode for energy counter
As per the documentation of powercap sysfs, energy_uj field is read only,
if it can't be reset. Currently it always allows write but will fail,
if there is no reset callback.
Changing mode field, to read only if there is no reset callback.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reported-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions