diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:05:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:50 -0500 |
commit | 37bfbaf995d2c1f8196ee04c9d6f68258d5ec3e8 (patch) | |
tree | baa1ce07e948e5b91cfb3cd5d139f8d45e1ba325 /arch/alpha/kernel/process.c | |
parent | 9fc658763bf992e778243ebe898b03746151ab88 (diff) |
[PATCH] alpha: task_thread_info()
use task_thread_info() for accesses to thread_info of task in arch/alpha
and include/asm-alpha
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/alpha/kernel/process.c')
-rw-r--r-- | arch/alpha/kernel/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c index abb739b88ed1..7acad7055089 100644 --- a/arch/alpha/kernel/process.c +++ b/arch/alpha/kernel/process.c | |||
@@ -493,7 +493,7 @@ unsigned long | |||
493 | thread_saved_pc(task_t *t) | 493 | thread_saved_pc(task_t *t) |
494 | { | 494 | { |
495 | unsigned long base = (unsigned long)t->thread_info; | 495 | unsigned long base = (unsigned long)t->thread_info; |
496 | unsigned long fp, sp = t->thread_info->pcb.ksp; | 496 | unsigned long fp, sp = task_thread_info(t)->pcb.ksp; |
497 | 497 | ||
498 | if (sp > base && sp+6*8 < base + 16*1024) { | 498 | if (sp > base && sp+6*8 < base + 16*1024) { |
499 | fp = ((unsigned long*)sp)[6]; | 499 | fp = ((unsigned long*)sp)[6]; |
@@ -523,7 +523,7 @@ get_wchan(struct task_struct *p) | |||
523 | 523 | ||
524 | pc = thread_saved_pc(p); | 524 | pc = thread_saved_pc(p); |
525 | if (in_sched_functions(pc)) { | 525 | if (in_sched_functions(pc)) { |
526 | schedule_frame = ((unsigned long *)p->thread_info->pcb.ksp)[6]; | 526 | schedule_frame = ((unsigned long *)task_thread_info(p)->pcb.ksp)[6]; |
527 | return ((unsigned long *)schedule_frame)[12]; | 527 | return ((unsigned long *)schedule_frame)[12]; |
528 | } | 528 | } |
529 | return pc; | 529 | return pc; |