[S390] switch_to: get rid of prev == next check
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 25 Oct 2010 14:10:19 +0000 (16:10 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Mon, 25 Oct 2010 14:10:16 +0000 (16:10 +0200)
schedule() makes sure that prev != next before calling switch_to().
Therefore remove the redundant check.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/system.h

index c35d0a3..3c079dd 100644 (file)
@@ -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]);                \