Skip to content

Commit

Permalink
[PATCH] Reinstate const in next_thread()
Browse files Browse the repository at this point in the history
Before commit 47e6532, 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>
  • Loading branch information
Keith Owens authored and Linus Torvalds committed Apr 11, 2006
1 parent 49b6e2a commit a9cdf41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a9cdf41

Please sign in to comment.