Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Make flush_thread

Avoids function calls to an empty function.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+4 -4
+4
arch/mips/include/asm/processor.h
··· 355 355 */ 356 356 extern void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp); 357 357 358 + static inline void flush_thread(void) 359 + { 360 + } 361 + 358 362 unsigned long get_wchan(struct task_struct *p); 359 363 360 364 #define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + \
-4
arch/mips/kernel/process.c
··· 77 77 { 78 78 } 79 79 80 - void flush_thread(void) 81 - { 82 - } 83 - 84 80 int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) 85 81 { 86 82 /*