sched, sh: Fold finish_arch_switch() into switch_to()
authorPeter Zijlstra <peterz@infradead.org>
Wed, 29 Jul 2015 15:14:48 +0000 (17:14 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Aug 2015 07:38:05 +0000 (09:38 +0200)
commitb31fdac2a921c8bf5ed9fe2c908625a54ce91e92
tree8bd5f5d5d57a5c615aed2604f43ad05859809877
parent08960e344800267df4980c2180e3c2c0c9b5f460
sched, sh: Fold finish_arch_switch() into switch_to()

The code looks buggy; why would we be restoring the previous task's
DSP state after we've switched to the next task?

Fix that and put the restore in switch_to(), removing the need for
finish_arch_switch().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Cc: michael@amarulasolutions.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/sh/include/asm/switch_to_32.h