Skip to content

Commit

Permalink
PowerCap: Add class driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
spandruvada authored and rafaeljw committed Oct 16, 2013
1 parent e23feb1 commit 75d2364
Show file tree
Hide file tree
Showing 4 changed files with 1,028 additions and 0 deletions.
19 changes: 19 additions & 0 deletions drivers/powercap/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Generic power capping sysfs interface configuration
#

menuconfig POWERCAP
bool "Generic powercap sysfs driver"
help
The power capping sysfs interface allows kernel subsystems to expose power
capping settings to user space in a consistent way. Usually, it consists
of multiple control types that determine which settings may be exposed and
power zones representing parts of the system that can be subject to power
capping.

If you want this code to be compiled in, say Y here.

if POWERCAP
# Client driver configurations go here.

endif
1 change: 1 addition & 0 deletions drivers/powercap/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-$(CONFIG_POWERCAP) += powercap_sys.o
Loading

0 comments on commit 75d2364

Please sign in to comment.