diff options
author | ZhikuiRen <zhikui.ren@intel.com> | 2020-01-09 21:48:00 +0300 |
---|---|---|
committer | Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> | 2021-11-05 10:22:05 +0300 |
commit | 83295f44629ae028b8838805c9ebe968975ac466 (patch) | |
tree | 23644f1bcd266909aab09b49709122110e5e215d /include | |
parent | eebcddb204d19684c857d4a59dbdf028de8be6fd (diff) | |
download | linux-83295f44629ae028b8838805c9ebe968975ac466.tar.xz |
Add peci-cpupower driver
peci-cpupower reads CPU energy counter through peci
and computes average power in mW since last read.
Signed-off-by: ZhikuiRen <zhikui.ren@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/peci-ioctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/peci-ioctl.h b/include/uapi/linux/peci-ioctl.h index 94657be3f2e9..4e0eef089690 100644 --- a/include/uapi/linux/peci-ioctl.h +++ b/include/uapi/linux/peci-ioctl.h @@ -231,6 +231,7 @@ struct peci_rd_pkg_cfg_msg { #define PECI_PKG_ID_MAX_THREAD_ID 0x0003 /* Max Thread ID */ #define PECI_PKG_ID_MICROCODE_REV 0x0004 /* CPU Microcode Update Revision */ #define PECI_PKG_ID_MACHINE_CHECK_STATUS 0x0005 /* Machine Check Status */ +#define PECI_PKG_ID_PKG_ENERGY_STATUS 0x00ff /* Average Energy */ __u8 rx_len; __u8 cc; |