From: Heiko Carstens Date: Mon, 25 Oct 2010 14:10:19 +0000 (+0200) Subject: [S390] switch_to: get rid of prev == next check X-Git-Tag: v3.0~3030^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=189b93d00fd6f71b013ad472fd72c0f043b160a9;p=platform%2Fkernel%2Flinux-amlogic.git [S390] switch_to: get rid of prev == next check schedule() makes sure that prev != next before calling switch_to(). Therefore remove the redundant check. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/include/asm/system.h b/arch/s390/include/asm/system.h index c35d0a3..3c079dd 100644 --- a/arch/s390/include/asm/system.h +++ b/arch/s390/include/asm/system.h @@ -86,8 +86,6 @@ static inline void restore_access_regs(unsigned int *acrs) } #define switch_to(prev,next,last) do { \ - if (prev == next) \ - break; \ if (prev->mm) { \ save_fp_regs(&prev->thread.fp_regs); \ save_access_regs(&prev->thread.acrs[0]); \