From: Andrew Morton Date: Mon, 23 Apr 2007 21:41:13 +0000 (-0700) Subject: acpi-thermal: fix mod_timer() interval X-Git-Tag: v2.6.21~18 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=94e22e13ad063c614b458a019b428ffc118e5c06;p=linux-2.6-omap-h63xx.git acpi-thermal: fix mod_timer() interval Use relative time, not absolute. Discovered by Jung-Ik (John) Lee . Cc: Jung-Ik (John) Lee Acked-by: Len Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 0ae8b9310cb..589b98b7b21 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -758,7 +758,8 @@ static void acpi_thermal_check(void *data) del_timer(&(tz->timer)); } else { if (timer_pending(&(tz->timer))) - mod_timer(&(tz->timer), (HZ * sleep_time) / 1000); + mod_timer(&(tz->timer), + jiffies + (HZ * sleep_time) / 1000); else { tz->timer.data = (unsigned long)tz; tz->timer.function = acpi_thermal_run;