Commit 12621a163b78d775a95dea60357bc90e58e1a3aa
Committed by
Linus Torvalds
1 parent
24763c48a3
Exists in
master
and in
4 other branches
[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>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
drivers/macintosh/therm_pm72.c
| ... | ... | @@ -1678,10 +1678,9 @@ |
| 1678 | 1678 | } |
| 1679 | 1679 | |
| 1680 | 1680 | // FIXME: Deal with signals |
| 1681 | - set_current_state(TASK_INTERRUPTIBLE); | |
| 1682 | 1681 | elapsed = jiffies - start; |
| 1683 | 1682 | if (elapsed < HZ) |
| 1684 | - schedule_timeout(HZ - elapsed); | |
| 1683 | + schedule_timeout_interruptible(HZ - elapsed); | |
| 1685 | 1684 | } |
| 1686 | 1685 | |
| 1687 | 1686 | out: |