[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-3caa37519ccbb200c7fbbf6ff4fb306a30f29425@git.kernel.org>
Date: Thu, 14 Oct 2010 07:41:06 GMT
From: tip-bot for Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
mathieu.desnoyers@...icios.com, rusty@...tcorp.com.au,
ananth@...ibm.com, masami.hiramatsu.pt@...achi.com,
tglx@...utronix.de, mingo@...e.hu
Subject: [tip:perf/core] x86: Use __stop_machine() in text_poke_smp()
Commit-ID: 3caa37519ccbb200c7fbbf6ff4fb306a30f29425
Gitweb: http://git.kernel.org/tip/3caa37519ccbb200c7fbbf6ff4fb306a30f29425
Author: Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
AuthorDate: Thu, 14 Oct 2010 12:10:36 +0900
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Thu, 14 Oct 2010 08:55:28 +0200
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@...achi.com>
Cc: Rusty Russell <rusty@...tcorp.com.au>
Cc: Ananth N Mavinakayanahalli <ananth@...ibm.com>
Cc: 2nddept-manager@....hitachi.co.jp
Cc: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
LKML-Reference: <20101014031036.4100.83989.stgit@...236.sdl.hitachi.co.jp>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
arch/x86/kernel/alternative.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index cb0e6d3..a36bb90 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -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, NULL);
return addr;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists