]> git.baikalelectronics.ru Git - kernel.git/commit
x86: warn if arch_flush_lazy_mmu_cpu is called in preemptible context
authorThomas Gleixner <tglx@linutronix.de>
Thu, 12 Feb 2009 20:30:48 +0000 (21:30 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 12 Feb 2009 22:11:58 +0000 (23:11 +0100)
commit5bb9a43466276796135e20ec96ba05dcdd7fdca1
treea7ebd50755ae7321e89a4e5a0b64e4a5a7de0dc4
parent6d24ddc198842b652ed3cbbca7d65775c693c469
x86: warn if arch_flush_lazy_mmu_cpu is called in preemptible context

Impact: Catch cases where lazy MMU state is active in a preemtible context

arch_flush_lazy_mmu_cpu() has been changed to disable preemption so
the checks in enter/leave will never trigger. Put the preemtible()
check into arch_flush_lazy_mmu_cpu() to catch such cases.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/paravirt.c