aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authordavem <davem>2002-02-10 06:04:33 +0000
committerdavem <davem>2002-02-10 06:04:33 +0000
commitb71e339e1cbfee6d77bdc99a426113b489b4fbba (patch)
tree309dae616883470de89b957c0f1dae412761b5ed /include
parentf5dea6e62a3e557d78412b139de0fad38d82741c (diff)
downloadnetdev-vger-cvs-b71e339e1cbfee6d77bdc99a426113b489b4fbba.tar.gz
Make thread_saved_pc take a task_struct ptr.
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/processor.h4
-rw-r--r--include/asm-sparc64/processor.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h
index 9fdc37660..ec48a38e5 100644
--- a/include/asm-i386/processor.h
+++ b/include/asm-i386/processor.h
@@ -439,9 +439,9 @@ extern void release_segments(struct mm_struct * mm);
/*
* Return saved PC of a blocked thread.
*/
-static inline unsigned long thread_saved_pc(struct thread_info *ti)
+static inline unsigned long thread_saved_pc(struct task_struct *tsk)
{
- return ((unsigned long *)ti->task->thread->esp)[3];
+ return ((unsigned long *)tsk->thread->esp)[3];
}
unsigned long get_wchan(struct task_struct *p);
diff --git a/include/asm-sparc64/processor.h b/include/asm-sparc64/processor.h
index dbeacf216..4e8cbdfa1 100644
--- a/include/asm-sparc64/processor.h
+++ b/include/asm-sparc64/processor.h
@@ -1,4 +1,4 @@
-/* $Id: processor.h,v 1.82 2002-02-09 19:49:31 davem Exp $
+/* $Id: processor.h,v 1.83 2002-02-10 06:04:33 davem Exp $
* include/asm-sparc64/processor.h
*
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
@@ -79,8 +79,8 @@ struct thread_struct {
#ifndef __ASSEMBLY__
/* Return saved PC of a blocked thread. */
-struct thread_info;
-extern unsigned long thread_saved_pc(struct thread_info *);
+struct task_struct;
+extern unsigned long thread_saved_pc(struct task_struct *);
/* On Uniprocessor, even in RMO processes see TSO semantics */
#ifdef CONFIG_SMP