diff options
author | Ingo Molnar <mingo@elte.hu> | 2012-03-01 04:26:41 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2012-03-01 04:26:43 -0500 |
commit | 7e4d960993331e92567f0180e45322a93e6780ba (patch) | |
tree | 4d7444035303fc0b545e88afbd894176344fb2a3 /include/linux/sched.h | |
parent | de5bdff7a72acc281219be2b8edeeca1fd81c542 (diff) | |
parent | 164974a8f2a482f1abcb027c6d1a89dd79b14297 (diff) |
Merge branch 'linus' into sched/core
Merge reason: we'll queue up dependent patches.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index eb5de466f099..1a6398424fab 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2105,7 +2105,7 @@ extern struct task_struct *idle_task(int cpu); | |||
2105 | * is_idle_task - is the specified task an idle task? | 2105 | * is_idle_task - is the specified task an idle task? |
2106 | * @p: the task in question. | 2106 | * @p: the task in question. |
2107 | */ | 2107 | */ |
2108 | static inline bool is_idle_task(struct task_struct *p) | 2108 | static inline bool is_idle_task(const struct task_struct *p) |
2109 | { | 2109 | { |
2110 | return p->pid == 0; | 2110 | return p->pid == 0; |
2111 | } | 2111 | } |
@@ -2274,6 +2274,12 @@ static inline void mmdrop(struct mm_struct * mm) | |||
2274 | extern void mmput(struct mm_struct *); | 2274 | extern void mmput(struct mm_struct *); |
2275 | /* Grab a reference to a task's mm, if it is not already going away */ | 2275 | /* Grab a reference to a task's mm, if it is not already going away */ |
2276 | extern struct mm_struct *get_task_mm(struct task_struct *task); | 2276 | extern struct mm_struct *get_task_mm(struct task_struct *task); |
2277 | /* | ||
2278 | * Grab a reference to a task's mm, if it is not already going away | ||
2279 | * and ptrace_may_access with the mode parameter passed to it | ||
2280 | * succeeds. | ||
2281 | */ | ||
2282 | extern struct mm_struct *mm_access(struct task_struct *task, unsigned int mode); | ||
2277 | /* Remove the current tasks stale references to the old mm_struct */ | 2283 | /* Remove the current tasks stale references to the old mm_struct */ |
2278 | extern void mm_release(struct task_struct *, struct mm_struct *); | 2284 | extern void mm_release(struct task_struct *, struct mm_struct *); |
2279 | /* Allocate a new mm structure and copy contents from tsk->mm */ | 2285 | /* Allocate a new mm structure and copy contents from tsk->mm */ |