]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: entry: Remove unneeded need_resched() loop
authorValentin Schneider <valentin.schneider@arm.com>
Fri, 15 Mar 2019 16:31:33 +0000 (16:31 +0000)
committerPaul Burton <paul.burton@mips.com>
Tue, 19 Mar 2019 22:25:45 +0000 (15:25 -0700)
commit4e6b78bbf73b0494eae75957c166e75198392a0a
treec5b988262d0ae06bedd2045ccd772737493a3b30
parent805099b2fb57eba3d69bc38aeb447dfe76b0ebb9
MIPS: entry: Remove unneeded need_resched() loop

Since the enabling and disabling of IRQs within preempt_schedule_irq()
is contained in a need_resched() loop, we don't need the outer arch
code loop.

Note that commit e714d20ea4f4 ("Use preempt_schedule_irq.") initially
removed the existing loop, but missed the final branch to restore_all.
Commit a91b32001507 ("Fix preemption bug.") missed that and reintroduced
the loop.

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-kernel@vger.kernel.org
arch/mips/kernel/entry.S