diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-26 12:45:41 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-26 12:45:41 -0800 |
commit | 2437dcbf555bff04e4ee8b8dba4587f946c1cd3d (patch) | |
tree | f04f3ed779c25caa933744d2d5965ca4e297f05d /include | |
parent | 0dbfe8ddaaab9fe5bc8672c064d3ede6cd66201a (diff) | |
parent | b64b223aed5f8aeeb6c046f1b050a8f976b87de0 (diff) |
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
rcu: Add missing __cpuinit annotation in rcutorture code
sched: Add "const" to is_idle_task() parameter
rcu: Make rcutorture bool parameters really bool (core code)
memblock: Fix alloc failure due to dumb underflow protection in memblock_find_in_range_node()
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 513f5245987..2234985a5e6 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2090,7 +2090,7 @@ extern struct task_struct *idle_task(int cpu); * is_idle_task - is the specified task an idle task? * @p: 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; } |