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)
commit34b0900d323122113683685b200aae9f9b75e63b
treea7ebd50755ae7321e89a4e5a0b64e4a5a7de0dc4
parentd85cf93da66977dbc645352be1b2084a659d8a0b
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