diff options
author | 2005-11-07 01:01:17 -0800 | |
---|---|---|
committer | 2005-11-07 07:53:57 -0800 | |
commit | 12621a163b78d775a95dea60357bc90e58e1a3aa (patch) | |
tree | fc06cefe67db4e54f737393b420b7b0529608d5b /drivers/macintosh/therm_pm72.c | |
parent | [PATCH] isdn: fix-up schedule_timeout() usage (diff) | |
download | linux-12621a163b78d775a95dea60357bc90e58e1a3aa.tar.gz linux-12621a163b78d775a95dea60357bc90e58e1a3aa.tar.bz2 linux-12621a163b78d775a95dea60357bc90e58e1a3aa.zip |
[PATCH] drivers/macintosh: fix-up schedule_timeout() usage
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>
Diffstat (limited to 'drivers/macintosh/therm_pm72.c')
-rw-r--r-- | drivers/macintosh/therm_pm72.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/macintosh/therm_pm72.c b/drivers/macintosh/therm_pm72.c index cc507ceef153..3fc8cdd94c3d 100644 --- 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: |