From: Andrew Morton Date: Mon, 23 Apr 2007 21:41:13 +0000 (-0700) Subject: acpi-thermal: fix mod_timer() interval X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=94e22e13ad063c614b458a019b428ffc118e5c06;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 0ae8b9310cbf..589b98b7b216 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;