diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-10-24 15:15:24 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-10-24 15:15:24 +0000 |
commit | d44ce4991590772faca9bd85805bd58025052f10 (patch) | |
tree | 68e03fb75bcb1854abac31c9106d9642c1ad5848 | |
parent | 5379220e5849358eda0dde24feaa4a5db6f142f6 (diff) |
Attempt to fix get_wchan().
-rw-r--r-- | arch/mips/kernel/process.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 6a1a6c326..9d1d0ff62 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c @@ -203,18 +203,9 @@ unsigned long get_wchan(struct task_struct *p) return 0; pc = thread_saved_pc(&p->thread); - if (pc == (unsigned long) interruptible_sleep_on - || pc == (unsigned long) sleep_on) { - schedule_frame = ((unsigned long *)p->thread.reg30)[9]; - return ((unsigned long *)schedule_frame)[15]; - } - if (pc == (unsigned long) interruptible_sleep_on_timeout - || pc == (unsigned long) sleep_on_timeout) { - schedule_frame = ((unsigned long *)p->thread.reg30)[9]; - return ((unsigned long *)schedule_frame)[16]; - } if (pc >= first_sched && pc < last_sched) { - printk(KERN_DEBUG "Bug in %s\n", __FUNCTION__); + schedule_frame = ((unsigned long *)p->thread.reg30)[9]; + return ((unsigned long *)schedule_frame)[11]; } return pc; |