]> git.baikalelectronics.ru Git - kernel.git/commit
parisc/mm: Ensure IRQs are off in switch_mm()
authorHelge Deller <deller@gmx.de>
Mon, 29 May 2017 15:14:16 +0000 (17:14 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 9 Jun 2017 09:31:06 +0000 (11:31 +0200)
commit071e6abfe583739b5b158a374b96a473014e4bdb
tree834c331b2c9074ddfa2a5a715d88f06ddbb07d90
parent31b8819bbceeac44a162156ed171d29b77e57e5e
parisc/mm: Ensure IRQs are off in switch_mm()

This is because of commit 221e4d8af35c ("sched/core: Add switch_mm_irqs_off()
and use it in the scheduler") in which switch_mm_irqs_off() is called by the
scheduler, vs switch_mm() which is used by use_mm().

This patch lets the parisc code mirror the x86 and powerpc code, ie. it
disables interrupts in switch_mm(), and optimises the scheduler case by
defining switch_mm_irqs_off().

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # v4.7+
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/mmu_context.h