Commit 91f621c2 authored by David Howells's avatar David Howells Committed by Linus Torvalds

[PATCH] thread information block

The first fix changes get_wchan() and the second one fixed what DaveM noticed.
parent 96c961bf
......@@ -808,7 +808,7 @@ unsigned long get_wchan(struct task_struct *p)
int count = 0;
if (!p || p == current || p->state == TASK_RUNNING)
return 0;
stack_page = (unsigned long)p;
stack_page = (unsigned long)p->thread_info;
esp = p->thread.esp;
if (!stack_page || esp < stack_page || esp > 8188+stack_page)
return 0;
......
......@@ -74,7 +74,7 @@ static inline void set_need_resched(void)
static inline void clear_need_resched(void)
{
set_thread_flag(TIF_NEED_RESCHED);
clear_thread_flag(TIF_NEED_RESCHED);
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment