summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2016-03-27 00:07:14 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2018-02-05 08:58:29 -0800
commit5ea4150e17720495e25f57c61416b23562bb6f24 (patch)
tree541a8dd0ac2c2a1b5f707a6f7fb3bfef92a4d1a2
parent1e9d84070a8c2c3dc4002807611a20a353868267 (diff)
UPSTREAM: MIPS: Make flush_thread
Avoids function calls to an empty function. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> (cherry picked from commit 04cc89d120f94131de89a6e20da27016db4782ce) Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
-rw-r--r--arch/mips/include/asm/processor.h4
-rw-r--r--arch/mips/kernel/process.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/processor.h
index 041153f5cf93..cfa15bad43af 100644
--- a/arch/mips/include/asm/processor.h
+++ b/arch/mips/include/asm/processor.h
@@ -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) + \
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
index 25dabde4bdeb..adb081f513ff 100644
--- a/arch/mips/kernel/process.c
+++ b/arch/mips/kernel/process.c
@@ -76,10 +76,6 @@ void exit_thread(void)
{
}
-void flush_thread(void)
-{
-}
-
int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
{
/*