sched: Add wrapper for get_wchan() to keep task blocked
[linux-2.6-microblaze.git] / arch / ia64 / kernel / process.c
index e56d63f..834df24 100644 (file)
@@ -523,15 +523,12 @@ exit_thread (struct task_struct *tsk)
 }
 
 unsigned long
-get_wchan (struct task_struct *p)
+__get_wchan (struct task_struct *p)
 {
        struct unw_frame_info info;
        unsigned long ip;
        int count = 0;
 
-       if (!p || p == current || task_is_running(p))
-               return 0;
-
        /*
         * Note: p may not be a blocked task (it could be current or
         * another process running on some other CPU.  Rather than