https://github.com/torvalds/linux
Revision 95677a9a3847de4f37e0f463aeb94aa8d5cccc50 authored by Srinivas Pandruvada on 04 December 2013, 19:12:59 UTC, committed by Rafael J. Wysocki on 05 December 2013, 01:05:48 UTC
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>
1 parent 08ff4cb
History
Tip revision: 95677a9a3847de4f37e0f463aeb94aa8d5cccc50 authored by Srinivas Pandruvada on 04 December 2013, 19:12:59 UTC
PowerCap: Fix mode for energy counter
Tip revision: 95677a9
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.0 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 257.5 KB
Makefile -rw-r--r-- 47.4 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top