hwmon: (coretemp) Report package power and energy consumption
Guenter Roeck
maintainerPATCH v4 1/1 hwmon: (coretemp) Report package power and energy consumption
Supported by SandyBridge and newer CPUs.
Cc Fenghua Yu <[email protected]>
Signed-off-by Guenter Roeck <[email protected]>
---
v4: Replaced INIT_DELAYED_WORK with INIT_DEFERRABLE_WORK
v3: Added Cc:
v2: Fix missing symbol error on i386 builds
Dropped leftover pr_info from debugging
I dropped this patch from my -next queue. The potential negative impact due to scheduled work especially in suspend situations is too risky without feedback and review by others.
Documentation/hwmon/coretemp | 6 ++ drivers/hwmon/coretemp.c | 188 +++++++++++++++++++++++++++++++++++++++++- 2 files changed, 191 insertions(+), 3 deletions(-)
Documentation/hwmon/coretemp +6 -0
@@ -43,6 +43,12 @@ tempX_crit_alarm - Set when Out-of-spec bit is set, never clears. tempX_label - Contains string "Core X", where X is processor number. For Package temp, this will be "Physical id Y", where Y is the package number. +energyX_input - Package energy consumption since driver was loaded +powerX_cap - Package power limit +powerX_cap_max - Maximum value for powerX_cap +powerX_cap_min - Minimum value for powerX_cap +powerX_input - Package power consumption +powerX_max - Maximum package power On CPU models which support it, TjMax is read from a model-specific register. On other models, it is set to an arbitrary value based on weak heuristics.
drivers/hwmon/coretemp.c +183 -3
249 lines not on this page · raw message
Signature · 7 lines
1.7.9.7 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors