]> git.hungrycats.org Git - linux/commitdiff
[PATCH] thread information block
authorDavid Howells <dhowells@redhat.com>
Fri, 8 Feb 2002 04:46:14 +0000 (20:46 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 8 Feb 2002 04:46:14 +0000 (20:46 -0800)
The first fix changes get_wchan() and the second one fixed what DaveM noticed.

arch/i386/kernel/process.c
include/linux/thread_info.h

index b955ff2bb7f761b74fc1c9e41e335828e25dd682..142915bd3ea0e400d9578ac17f968ea9bd4c8f03 100644 (file)
@@ -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;
index 7c4b99fa9681ec7a22d7090fba069b219982f825..926186379545a8402429b07d8fcde9972e4da605 100644 (file)
@@ -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