aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@snapgear.com>2007-07-16 02:38:31 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 12:05:37 -0400
commit45a82f519897bdd48eeaad659e4e10ce6d965646 (patch)
tree288246ef9da6ba5d022c5756c51c767e102752e5 /arch
parent57c8f63e8e7a4a95d7fcc49e3953341fb4039899 (diff)
m68knommu: use TRHEAD_SIZE instead of hard constant
Use THREAD_SIZE instead of a hard constant. Signed-off-by: Philippe De Muyter <phdm@macqel.be> Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/m68knommu/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68knommu/kernel/process.c b/arch/m68knommu/kernel/process.c
index 941955dc3b7c..846f97534685 100644
--- a/arch/m68knommu/kernel/process.c
+++ b/arch/m68knommu/kernel/process.c
@@ -377,7 +377,7 @@ unsigned long get_wchan(struct task_struct *p)
377 fp = ((struct switch_stack *)p->thread.ksp)->a6; 377 fp = ((struct switch_stack *)p->thread.ksp)->a6;
378 do { 378 do {
379 if (fp < stack_page+sizeof(struct thread_info) || 379 if (fp < stack_page+sizeof(struct thread_info) ||
380 fp >= 8184+stack_page) 380 fp >= THREAD_SIZE-8+stack_page)
381 return 0; 381 return 0;
382 pc = ((unsigned long *)fp)[1]; 382 pc = ((unsigned long *)fp)[1];
383 if (!in_sched_functions(pc)) 383 if (!in_sched_functions(pc))