patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / sh / kernel / process.c
index 7d45ea0..6b4cb09 100644 (file)
@@ -461,12 +461,6 @@ out:
        return error;
 }
 
-/*
- * These bracket the sleeping functions..
- */
-#define first_sched    ((unsigned long) scheduling_functions_start_here)
-#define last_sched     ((unsigned long) scheduling_functions_end_here)
-
 unsigned long get_wchan(struct task_struct *p)
 {
        unsigned long schedule_frame;
@@ -479,7 +473,7 @@ unsigned long get_wchan(struct task_struct *p)
         * The same comment as on the Alpha applies here, too ...
         */
        pc = thread_saved_pc(p);
-       if (pc >= first_sched && pc < last_sched) {
+       if (in_sched_functions(pc)) {
                schedule_frame = ((unsigned long *)(long)p->thread.sp)[1];
                return (unsigned long)((unsigned long *)schedule_frame)[1];
        }