Skip to content

Commit 75d2364

Browse files
spandruvadarafaeljw
authored andcommitted
PowerCap: Add class driver
The power capping framework providing a consistent interface between the kernel and user space that allows power capping drivers to expose their settings to user space in a uniform way. The overall design of the framework is described in the documentation added by the previous patch in this series. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent e23feb1 commit 75d2364

4 files changed

Lines changed: 1028 additions & 0 deletions

File tree

‎drivers/powercap/Kconfig‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#
2+
# Generic power capping sysfs interface configuration
3+
#
4+
5+
menuconfig POWERCAP
6+
bool "Generic powercap sysfs driver"
7+
help
8+
The power capping sysfs interface allows kernel subsystems to expose power
9+
capping settings to user space in a consistent way. Usually, it consists
10+
of multiple control types that determine which settings may be exposed and
11+
power zones representing parts of the system that can be subject to power
12+
capping.
13+
14+
If you want this code to be compiled in, say Y here.
15+
16+
if POWERCAP
17+
# Client driver configurations go here.
18+
19+
endif

‎drivers/powercap/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
obj-$(CONFIG_POWERCAP) += powercap_sys.o

0 commit comments

Comments
 (0)