git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
arch
/
sh
/
kernel
/
process.c
diff --git
a/arch/sh/kernel/process.c
b/arch/sh/kernel/process.c
index
7d45ea0
..
6b4cb09
100644
(file)
--- a/
arch/sh/kernel/process.c
+++ b/
arch/sh/kernel/process.c
@@
-461,12
+461,6
@@
out:
return error;
}
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;
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);
* 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];
}
schedule_frame = ((unsigned long *)(long)p->thread.sp)[1];
return (unsigned long)((unsigned long *)schedule_frame)[1];
}