I get an issue that the 'power1_alarm' attribute shows wrong if we doesn't query the 'power1_average' and 'power1_cap' first. So fix it and do some trival optimizations for acpi_power_meter by the way. Huisong Li (4): hwmon: (acpi_power_meter) Fix using uninitialized variables hwmon: (acpi_power_meter) Fix update the power trip points on failure hwmon: (acpi_power_meter) Remove redundant 'sensors_valid' variable hwmon: (acpi_power_meter) Add the print of no notification that hardware limit is enforced drivers/hwmon/acpi_power_meter.c | 35 ++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 9 deletions(-) -- 2.22.0