]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/kernel/alternative.c
x86, alternative: Call stop_machine_text_poke() on all cpus
[net-next-2.6.git] / arch / x86 / kernel / alternative.c
index cb0e6d385f6d6e5a78527a738788904a092bc180..5ceeca382820c279c539a453b775fd1e16a2f386 100644 (file)
@@ -637,7 +637,8 @@ void *__kprobes text_poke_smp(void *addr, const void *opcode, size_t len)
        tpp.len = len;
        atomic_set(&stop_machine_first, 1);
        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, cpu_online_mask);
        return addr;
 }