mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
x86: Use __stop_machine() in text_poke_smp()
Use __stop_machine() in text_poke_smp() because the caller must get online_cpus before calling text_poke_smp(), but stop_machine() do it again. We don't need it. Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Cc: 2nddept-manager@sdl.hitachi.co.jp Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> LKML-Reference: <20101014031036.4100.83989.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
087a4eb559
commit
3caa37519c
1 changed files with 2 additions and 1 deletions
|
@ -637,7 +637,8 @@ void *__kprobes text_poke_smp(void *addr, const void *opcode, size_t len)
|
||||||
tpp.len = len;
|
tpp.len = len;
|
||||||
atomic_set(&stop_machine_first, 1);
|
atomic_set(&stop_machine_first, 1);
|
||||||
wrote_text = 0;
|
wrote_text = 0;
|
||||||
stop_machine(stop_machine_text_poke, (void *)&tpp, NULL);
|
/* Use __stop_machine() because the caller already got online_cpus. */
|
||||||
|
__stop_machine(stop_machine_text_poke, (void *)&tpp, NULL);
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue