]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/kernel/alternative.c
x86: implement atomic text_poke() via fixmap
authorMasami Hiramatsu <mhiramat@redhat.com>
Fri, 6 Mar 2009 15:37:54 +0000 (10:37 -0500)
committerIngo Molnar <mingo@elte.hu>
Fri, 6 Mar 2009 15:49:01 +0000 (16:49 +0100)
commit78ff7fae04554b49d29226ed12536268c2500d1f
tree377980e0543a7c9d0f6567498a186284ae85e432
parent3945dab45aa8c89014893bfa8eb1e1661a409cef
x86: implement atomic text_poke() via fixmap

Use fixmaps instead of vmap/vunmap in text_poke() for avoiding
page allocation and delayed unmapping.

At the result of above change, text_poke() becomes atomic and can be called
from stop_machine() etc.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
LKML-Reference: <49B14352.2040705@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/fixmap.h
arch/x86/kernel/alternative.c