aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2012-03-01 04:26:41 -0500
committerIngo Molnar <mingo@elte.hu>2012-03-01 04:26:43 -0500
commit7e4d960993331e92567f0180e45322a93e6780ba (patch)
tree4d7444035303fc0b545e88afbd894176344fb2a3 /include/linux/sched.h
parentde5bdff7a72acc281219be2b8edeeca1fd81c542 (diff)
parent164974a8f2a482f1abcb027c6d1a89dd79b14297 (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.h8
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 */
2108static inline bool is_idle_task(struct task_struct *p) 2108static 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)
2274extern void mmput(struct mm_struct *); 2274extern 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 */
2276extern struct mm_struct *get_task_mm(struct task_struct *task); 2276extern 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 */
2282extern 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 */
2278extern void mm_release(struct task_struct *, struct mm_struct *); 2284extern 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 */