diff options
-rw-r--r-- | include/linux/sched.h | 1 | ||||
-rw-r--r-- | kernel/timer.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 95395c143bab..e4921aad4063 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -314,6 +314,7 @@ extern int in_sched_functions(unsigned long addr); | |||
314 | #define MAX_SCHEDULE_TIMEOUT LONG_MAX | 314 | #define MAX_SCHEDULE_TIMEOUT LONG_MAX |
315 | extern signed long FASTCALL(schedule_timeout(signed long timeout)); | 315 | extern signed long FASTCALL(schedule_timeout(signed long timeout)); |
316 | extern signed long schedule_timeout_interruptible(signed long timeout); | 316 | extern signed long schedule_timeout_interruptible(signed long timeout); |
317 | extern signed long schedule_timeout_killable(signed long timeout); | ||
317 | extern signed long schedule_timeout_uninterruptible(signed long timeout); | 318 | extern signed long schedule_timeout_uninterruptible(signed long timeout); |
318 | asmlinkage void schedule(void); | 319 | asmlinkage void schedule(void); |
319 | 320 | ||
diff --git a/kernel/timer.c b/kernel/timer.c index a05817c021d6..66d7d8bca1a3 100644 --- a/kernel/timer.c +++ b/kernel/timer.c | |||
@@ -1100,6 +1100,13 @@ signed long __sched schedule_timeout_interruptible(signed long timeout) | |||
1100 | } | 1100 | } |
1101 | EXPORT_SYMBOL(schedule_timeout_interruptible); | 1101 | EXPORT_SYMBOL(schedule_timeout_interruptible); |
1102 | 1102 | ||
1103 | signed long __sched schedule_timeout_killable(signed long timeout) | ||
1104 | { | ||
1105 | __set_current_state(TASK_KILLABLE); | ||
1106 | return schedule_timeout(timeout); | ||
1107 | } | ||
1108 | EXPORT_SYMBOL(schedule_timeout_killable); | ||
1109 | |||
1103 | signed long __sched schedule_timeout_uninterruptible(signed long timeout) | 1110 | signed long __sched schedule_timeout_uninterruptible(signed long timeout) |
1104 | { | 1111 | { |
1105 | __set_current_state(TASK_UNINTERRUPTIBLE); | 1112 | __set_current_state(TASK_UNINTERRUPTIBLE); |