mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
thermal: Fix polling frequency for systems without passive cooling
The polling interval (in deciseconds) was accidently interpreted as being in milliseconds in one codepath, resulting in excessively frequent polling. Ensure that the conversion is performed. Signed-off-by: Matthew Garrett <mjg@redhat.com> Acked-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
0882e8dd3a
commit
67405439bc
1 changed files with 1 additions and 1 deletions
|
@ -909,7 +909,7 @@ static int acpi_thermal_register_thermal_zone(struct acpi_thermal *tz)
|
|||
thermal_zone_device_register("acpitz", trips, tz,
|
||||
&acpi_thermal_zone_ops,
|
||||
0, 0, 0,
|
||||
tz->polling_frequency);
|
||||
tz->polling_frequency*100);
|
||||
if (IS_ERR(tz->thermal_zone))
|
||||
return -ENODEV;
|
||||
|
||||
|
|
Loading…
Reference in a new issue