projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c959df9
)
acpi-thermal: fix mod_timer() interval
author
Andrew Morton
<
[email protected]
>
Mon, 23 Apr 2007 21:41:13 +0000
(14:41 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 24 Apr 2007 15:23:08 +0000
(08:23 -0700)
Use relative time, not absolute. Discovered by Jung-Ik (John) Lee
<
[email protected]
>.
Cc: Jung-Ik (John) Lee <
[email protected]
>
Acked-by: Len Brown <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/acpi/thermal.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/thermal.c
b/drivers/acpi/thermal.c
index 0ae8b9310cbf98d2320dc40800f08b12bb0f7f48..589b98b7b216e5096b9cb74fee45d6ae4035a0c9 100644
(file)
--- 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;