History

Add schedule_timeout_killable

Matthew Wilcox committed 18 years ago

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

Showing the changes to kernel/timer.c (1 of 2 files). Show all

Unified · Split

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