mbox series

[v1,0/4] hwmon: (acpi_power_meter) Some trival optimizations

Message ID 20241125093415.21719-1-lihuisong@huawei.com (mailing list archive)
Headers show
Series hwmon: (acpi_power_meter) Some trival optimizations | expand

Message

lihuisong (C) Nov. 25, 2024, 9:34 a.m. UTC
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(-)