Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16dc17ee authored by Tobias Klauser's avatar Tobias Klauser Committed by Matt Turner
Browse files

alpha: make thread_saved_pc static



The only user of thread_saved_pc() in non-arch-specific code was removed
in commit 8243d559 ("sched/core: Remove pointless printout in
sched_show_task()"), so it no longer needs to be globally defined for
Alpha and can be made static.

Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarMatt Turner <mattst88@gmail.com>
parent 77e5bff1
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -40,15 +40,12 @@ typedef struct {
struct thread_struct { };
#define INIT_THREAD  { }

/* Return saved PC of a blocked thread.  */
struct task_struct;
extern unsigned long thread_saved_pc(struct task_struct *);

/* Do necessary setup to start up a newly executed thread.  */
struct pt_regs;
extern void start_thread(struct pt_regs *, unsigned long, unsigned long);

/* Free all resources held by a thread. */
struct task_struct;
extern void release_thread(struct task_struct *);

unsigned long get_wchan(struct task_struct *p);
+1 −1
Original line number Diff line number Diff line
@@ -361,7 +361,7 @@ EXPORT_SYMBOL(dump_elf_task_fp);
 * all.  -- r~
 */

unsigned long
static unsigned long
thread_saved_pc(struct task_struct *t)
{
	unsigned long base = (unsigned long)task_stack_page(t);