Commit 294d5cc2 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Matthew Wilcox

Add schedule_timeout_killable

Signed-off-by: default avatarMatthew Wilcox <willy@linux.intel.com>
parent da784511
...@@ -314,6 +314,7 @@ extern int in_sched_functions(unsigned long addr); ...@@ -314,6 +314,7 @@ extern int in_sched_functions(unsigned long addr);
#define MAX_SCHEDULE_TIMEOUT LONG_MAX #define MAX_SCHEDULE_TIMEOUT LONG_MAX
extern signed long FASTCALL(schedule_timeout(signed long timeout)); extern signed long FASTCALL(schedule_timeout(signed long timeout));
extern signed long schedule_timeout_interruptible(signed long timeout); extern signed long schedule_timeout_interruptible(signed long timeout);
extern signed long schedule_timeout_killable(signed long timeout);
extern signed long schedule_timeout_uninterruptible(signed long timeout); extern signed long schedule_timeout_uninterruptible(signed long timeout);
asmlinkage void schedule(void); asmlinkage void schedule(void);
......
...@@ -1100,6 +1100,13 @@ signed long __sched schedule_timeout_interruptible(signed long timeout) ...@@ -1100,6 +1100,13 @@ signed long __sched schedule_timeout_interruptible(signed long timeout)
} }
EXPORT_SYMBOL(schedule_timeout_interruptible); EXPORT_SYMBOL(schedule_timeout_interruptible);
signed long __sched schedule_timeout_killable(signed long timeout)
{
__set_current_state(TASK_KILLABLE);
return schedule_timeout(timeout);
}
EXPORT_SYMBOL(schedule_timeout_killable);
signed long __sched schedule_timeout_uninterruptible(signed long timeout) signed long __sched schedule_timeout_uninterruptible(signed long timeout)
{ {
__set_current_state(TASK_UNINTERRUPTIBLE); __set_current_state(TASK_UNINTERRUPTIBLE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment