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:
24763c4
)
[PATCH] drivers/macintosh: fix-up schedule_timeout() usage
author
Nishanth Aravamudan
<nacc@us.ibm.com>
Mon, 7 Nov 2005 09:01:17 +0000
(
01:01
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 7 Nov 2005 15:53:57 +0000
(07:53 -0800)
Use schedule_timeout_interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/macintosh/therm_pm72.c
patch
|
blob
|
history
diff --git
a/drivers/macintosh/therm_pm72.c
b/drivers/macintosh/therm_pm72.c
index cc507ceef15388175917ef3852c504731dd66c24..3fc8cdd94c3daa9b4154b8d721b381bb0eb09797 100644
(file)
--- a/
drivers/macintosh/therm_pm72.c
+++ b/
drivers/macintosh/therm_pm72.c
@@
-1678,10
+1678,9
@@
static int main_control_loop(void *x)
}
// FIXME: Deal with signals
- set_current_state(TASK_INTERRUPTIBLE);
elapsed = jiffies - start;
if (elapsed < HZ)
- schedule_timeout(HZ - elapsed);
+ schedule_timeout
_interruptible
(HZ - elapsed);
}
out: