~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/hwmon/acpi_power_meter.rst

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 Kernel driver power_meter
  2 =========================
  3 
  4 This driver talks to ACPI 4.0 power meters.
  5 
  6 Supported systems:
  7 
  8   * Any recent system with ACPI 4.0.
  9 
 10     Prefix: 'power_meter'
 11 
 12     Datasheet: https://uefi.org/specifications, section 10.4.
 13 
 14 Author: Darrick J. Wong
 15 
 16 Description
 17 -----------
 18 
 19 This driver implements sensor reading support for the power meters exposed in
 20 the ACPI 4.0 spec (Chapter 10.4).  These devices have a simple set of
 21 features--a power meter that returns average power use over a configurable
 22 interval, an optional capping mechanism, and a couple of trip points.  The
 23 sysfs interface conforms with the specification outlined in the "Power" section
 24 of Documentation/hwmon/sysfs-interface.rst.
 25 
 26 Special Features
 27 ----------------
 28 
 29 The `power[1-*]_is_battery` knob indicates if the power supply is a battery.
 30 Both `power[1-*]_average_{min,max}` must be set before the trip points will work.
 31 When both of them are set, an ACPI event will be broadcast on the ACPI netlink
 32 socket and a poll notification will be sent to the appropriate
 33 `power[1-*]_average` sysfs file.
 34 
 35 The `power[1-*]_{model_number, serial_number, oem_info}` fields display
 36 arbitrary strings that ACPI provides with the meter.  The measures/ directory
 37 contains symlinks to the devices that this meter measures.
 38 
 39 Some computers have the ability to enforce a power cap in hardware.  If this is
 40 the case, the `power[1-*]_cap` and related sysfs files will appear.  When the
 41 average power consumption exceeds the cap, an ACPI event will be broadcast on
 42 the netlink event socket and a poll notification will be sent to the
 43 appropriate `power[1-*]_alarm` file to indicate that capping has begun, and the
 44 hardware has taken action to reduce power consumption.  Most likely this will
 45 result in reduced performance.
 46 
 47 There are a few other ACPI notifications that can be sent by the firmware.  In
 48 all cases the ACPI event will be broadcast on the ACPI netlink event socket as
 49 well as sent as a poll notification to a sysfs file.  The events are as
 50 follows:
 51 
 52 `power[1-*]_cap` will be notified if the firmware changes the power cap.
 53 `power[1-*]_interval` will be notified if the firmware changes the averaging
 54 interval.

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php