linux_dsm_epyc7002/drivers/powercap
Srinivas Pandruvada 95677a9a38 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>
2013-12-05 02:05:48 +01:00
..
intel_rapl.c PowerCap: Introduce Intel RAPL power capping driver 2013-10-18 13:29:52 +02:00
Kconfig PowerCap: Introduce Intel RAPL power capping driver 2013-10-18 13:29:52 +02:00
Makefile PowerCap: Introduce Intel RAPL power capping driver 2013-10-18 13:29:52 +02:00
powercap_sys.c PowerCap: Fix mode for energy counter 2013-12-05 02:05:48 +01:00