summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorKeith Owens2006-04-11 07:54:07 +0200
committerLinus Torvalds2006-04-11 15:18:41 +0200
commita9cdf410ca8f59b52bc7061a6751050010c7cc5b (patch)
treea7b63f15f2221e424b37989af1083701d1549adf /include/linux
parent[PATCH] Remove extraneous \n in doubletalk init printk. (diff)
downloadkernel-qcow2-linux-a9cdf410ca8f59b52bc7061a6751050010c7cc5b.tar.gz
kernel-qcow2-linux-a9cdf410ca8f59b52bc7061a6751050010c7cc5b.tar.xz
kernel-qcow2-linux-a9cdf410ca8f59b52bc7061a6751050010c7cc5b.zip
[PATCH] Reinstate const in next_thread()
Before commit 47e65328a7b1cdfc4e3102e50d60faf94ebba7d3, next_thread() took a const task_t. Reinstate the const qualifier, getting the next thread never changes the current thread. Signed-off-by: Keith Owens <kaos@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-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 a3e4f6b503a3..83d657811d01 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1206,7 +1206,7 @@ extern void wait_task_inactive(task_t * p);
/* de_thread depends on thread_group_leader not being a pid based check */
#define thread_group_leader(p) (p == p->group_leader)
-static inline task_t *next_thread(task_t *p)
+static inline task_t *next_thread(const task_t *p)
{
return list_entry(rcu_dereference(p->thread_group.next),
task_t, thread_group);