summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2012-01-17 09:44:17 +0100
committerIngo Molnar <mingo@elte.hu>2012-01-17 09:44:17 +0100
commitb64b223aed5f8aeeb6c046f1b050a8f976b87de0 (patch)
treef4ce305aaae5fa04f55ad04a3b9ee501158decde /include
parentmemblock: Fix alloc failure due to dumb underflow protection in memblock_find... (diff)
parentrcu: Add missing __cpuinit annotation in rcutorture code (diff)
downloadlinux-b64b223aed5f8aeeb6c046f1b050a8f976b87de0.tar.xz
linux-b64b223aed5f8aeeb6c046f1b050a8f976b87de0.zip
Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into core/urgent
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index cf0eb342bcba..40d84481a1c9 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2089,7 +2089,7 @@ extern struct task_struct *idle_task(int cpu);
* is_idle_task - is the specified task an idle task?
* @tsk: the task in question.
*/
-static inline bool is_idle_task(struct task_struct *p)
+static inline bool is_idle_task(const struct task_struct *p)
{
return p->pid == 0;
}