From: Rabin Vincent Date: Thu, 27 Oct 2011 07:54:32 +0000 (+0530) Subject: x86: Call stop_machine_text_poke() on all CPUs X-Git-Tag: upstream/snapshot3+hdmi~8698^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78345d2edc25e001558f3b7c85906f645d38d23c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git x86: Call stop_machine_text_poke() on all CPUs It appears that stop_machine_text_poke() wants to be called on all CPUs, like it's done from text_poke_smp(). Fix text_poke_smp_batch() to do this. Signed-off-by: Rabin Vincent Acked-by: Masami Hiramatsu Signed-off-by: Peter Zijlstra Cc: Mathieu Desnoyers Cc: Jason Baron Link: http://lkml.kernel.org/r/1319702072-32676-1-git-send-email-rabin@rab.in Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index c638228..1f84794 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -738,5 +738,5 @@ void __kprobes text_poke_smp_batch(struct text_poke_param *params, int n) atomic_set(&stop_machine_first, 1); wrote_text = 0; - __stop_machine(stop_machine_text_poke, (void *)&tpp, NULL); + __stop_machine(stop_machine_text_poke, (void *)&tpp, cpu_online_mask); }