mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
9fc658763b
commit
37bfbaf995
6 changed files with 30 additions and 30 deletions
|
@ -493,7 +493,7 @@ unsigned long
|
|||
thread_saved_pc(task_t *t)
|
||||
{
|
||||
unsigned long base = (unsigned long)t->thread_info;
|
||||
unsigned long fp, sp = t->thread_info->pcb.ksp;
|
||||
unsigned long fp, sp = task_thread_info(t)->pcb.ksp;
|
||||
|
||||
if (sp > base && sp+6*8 < base + 16*1024) {
|
||||
fp = ((unsigned long*)sp)[6];
|
||||
|
@ -523,7 +523,7 @@ get_wchan(struct task_struct *p)
|
|||
|
||||
pc = thread_saved_pc(p);
|
||||
if (in_sched_functions(pc)) {
|
||||
schedule_frame = ((unsigned long *)p->thread_info->pcb.ksp)[6];
|
||||
schedule_frame = ((unsigned long *)task_thread_info(p)->pcb.ksp)[6];
|
||||
return ((unsigned long *)schedule_frame)[12];
|
||||
}
|
||||
return pc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue