Skip to content

Commit

Permalink
MIPS: Make flush_thread
Browse files Browse the repository at this point in the history
Avoids function calls to an empty function.

Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
ralfbaechle committed May 13, 2016
1 parent 5d3c792 commit 04cc89d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions arch/mips/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
*/
extern void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp);

static inline void flush_thread(void)
{
}

unsigned long get_wchan(struct task_struct *p);

#define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + \
Expand Down
4 changes: 0 additions & 4 deletions arch/mips/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ void exit_thread(void)
{
}

void flush_thread(void)
{
}

int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
{
/*
Expand Down

0 comments on commit 04cc89d

Please sign in to comment.