Skip to content

Commit

Permalink
[S390] switch_to: get rid of prev == next check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Oct 25, 2010
1 parent fdb6d07 commit 189b93d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/s390/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]); \
Expand Down

0 comments on commit 189b93d

Please sign in to comment.