History

Add schedule_timeout_killable

Matthew Wilcox committed 18 years ago

Commit 294d5cc1 parent da784512 files · +8 −0Browse files

Unified · Split

2 files
  1. include/linux/sched.h +1 −0
  2. kernel/timer.c +7 −0
include/linux/sched.h+1−0
@@ -314,6 +314,7 @@ extern int in_sched_functions(unsigned long addr); · 313 unmodified lines
314314 #define MAX_SCHEDULE_TIMEOUT LONG_MAX
315315 extern signed long FASTCALL(schedule_timeout(signed long timeout));
316316 extern signed long schedule_timeout_interruptible(signed long timeout);
317+extern signed long schedule_timeout_killable(signed long timeout);
317318 extern signed long schedule_timeout_uninterruptible(signed long timeout);
318319 asmlinkage void schedule(void);
319320
kernel/timer.c+7−0
@@ -1100,6 +1100,13 @@ signed long __sched schedule_timeout_interruptible(signed long timeout) · 1099 unmodified lines
11001100 }
11011101 EXPORT_SYMBOL(schedule_timeout_interruptible);
11021102
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+
11031110 signed long __sched schedule_timeout_uninterruptible(signed long timeout)
11041111 {
11051112 __set_current_state(TASK_UNINTERRUPTIBLE);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t