[tip:x86/urgent] x86: Call stop_machine_text_poke() on all CPUs

From: tip-bot for Rabin Vincent
Date: Fri Nov 18 2011 - 18:35:35 EST


Commit-ID: 78345d2edc25e001558f3b7c85906f645d38d23c
Gitweb: http://git.kernel.org/tip/78345d2edc25e001558f3b7c85906f645d38d23c
Author: Rabin Vincent <rabin@xxxxxx>
AuthorDate: Thu, 27 Oct 2011 13:24:32 +0530
Committer: Ingo Molnar <mingo@xxxxxxx>
CommitDate: Mon, 14 Nov 2011 13:05:15 +0100

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 <rabin@xxxxxx>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
Cc: Jason Baron <jbaron@xxxxxxxxxx>
Link: http://lkml.kernel.org/r/1319702072-32676-1-git-send-email-rabin@xxxxxx
Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
arch/x86/kernel/alternative.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

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);
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/