From: Andrew Morton Date: Mon, 23 Apr 2007 21:41:13 +0000 (-0700) Subject: acpi-thermal: fix mod_timer() interval X-Git-Tag: upstream/snapshot3+hdmi~34989 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94e22e13ad063c614b458a019b428ffc118e5c06;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 0ae8b93..589b98b 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;