From: Matthew Garrett Date: Tue, 14 Apr 2009 19:16:45 +0000 (+0100) Subject: thermal: Fix polling frequency for systems without passive cooling X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=67405439bca28c4dbecd3fefd97fbdb282a302d9;p=linux.git 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 Acked-by: Zhang Rui Signed-off-by: Len Brown --- diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 9cd15e8c89322..564ea14242880 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -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;