Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937656AbXFHHVM (ORCPT ); Fri, 8 Jun 2007 03:21:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S936377AbXFHHRR (ORCPT ); Fri, 8 Jun 2007 03:17:17 -0400 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:33167 "EHLO sous-sol.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937860AbXFHHRP (ORCPT ); Fri, 8 Jun 2007 03:17:15 -0400 Message-Id: <20070608071541.946305000@sous-sol.org> References: <20070608071511.159309000@sous-sol.org> User-Agent: quilt/0.46-1 Date: Fri, 08 Jun 2007 00:15:23 -0700 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Len Brown , "Jung-Ik (John) Lee" , Len Brown , Greg Kroah-Hartman Subject: [patch 12/32] acpi-thermal: fix mod_timer() interval Content-Disposition: inline; filename=acpi-thermal-fix-mod_timer-interval.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1318 Lines: 37 -stable review patch. If anyone has any objections, please let us know. --------------------- From: Andrew Morton 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 Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/thermal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- linux-2.6.20.13.orig/drivers/acpi/thermal.c +++ linux-2.6.20.13/drivers/acpi/thermal.c @@ -758,7 +758,8 @@ static void acpi_thermal_check(void *dat 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; -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/