Commit 189b93d0 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

[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: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent fdb6d070
...@@ -86,8 +86,6 @@ static inline void restore_access_regs(unsigned int *acrs) ...@@ -86,8 +86,6 @@ static inline void restore_access_regs(unsigned int *acrs)
} }
#define switch_to(prev,next,last) do { \ #define switch_to(prev,next,last) do { \
if (prev == next) \
break; \
if (prev->mm) { \ if (prev->mm) { \
save_fp_regs(&prev->thread.fp_regs); \ save_fp_regs(&prev->thread.fp_regs); \
save_access_regs(&prev->thread.acrs[0]); \ save_access_regs(&prev->thread.acrs[0]); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment