Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
294d5cc2
Commit
294d5cc2
authored
Dec 06, 2007
by
Matthew Wilcox
Committed by
Matthew Wilcox
Dec 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add schedule_timeout_killable
Signed-off-by:
Matthew Wilcox
<
willy@linux.intel.com
>
parent
da784511
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
include/linux/sched.h
include/linux/sched.h
+1
-0
kernel/timer.c
kernel/timer.c
+7
-0
No files found.
include/linux/sched.h
View file @
294d5cc2
...
@@ -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
);
...
...
kernel/timer.c
View file @
294d5cc2
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment