OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jul 2017 05:42:20 +0000 (07:42 +0200)
commite3d2adaaf92760282888899d853535e08606cc98
treec84d56d2783b33df457d10ca1b14ad23d5a6df12
parent8ed89cfc8692d7d2fa61a462619334107697aa99
parisc/mm: Ensure IRQs are off in switch_mm()

commit 649aa24254e85bf6bd7807dd372d083707852b1f upstream.

This is because of commit f98db6013c55 ("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>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/mmu_context.h