summaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@us.ibm.com>2005-09-10 09:27:25 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-10 19:06:37 +0200
commit13e4b57f6a4e23ceb99794a650d777e74831f4a6 (patch)
treea585fdc3a2374dbedcf0114fa3c38d2fb7920774 /mm/oom_kill.c
parent[PATCH] kernel: fix-up schedule_timeout() usage (diff)
downloadlinux-13e4b57f6a4e23ceb99794a650d777e74831f4a6.tar.xz
linux-13e4b57f6a4e23ceb99794a650d777e74831f4a6.zip
[PATCH] mm: fix-up schedule_timeout() usage
Use schedule_timeout_{,un}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 'mm/oom_kill.c')
-rw-r--r--mm/oom_kill.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 5ec8da12cfd9..ac3bf33e5370 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -300,6 +300,5 @@ retry:
* Give "p" a good chance of killing itself before we
* retry to allocate memory.
*/
- __set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(1);
+ schedule_timeout_interruptible(1);
}