Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 087a4eb5 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Ingo Molnar
Browse files

stopmachine: Define __stop_machine when CONFIG_STOP_MACHINE=n



Define dummy __stop_machine() function even when
CONFIG_STOP_MACHINE=n. This getcpu-required version of
stop_machine() will be used from poke_text_smp().

Signed-off-by: default avatarMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: 2nddept-manager@sdl.hitachi.co.jp
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20101014031030.4100.34156.stgit@ltc236.sdl.hitachi.co.jp>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent fd02e6f7
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ int __stop_machine(int (*fn)(void *), void *data, const struct cpumask *cpus);

#else	 /* CONFIG_STOP_MACHINE && CONFIG_SMP */

static inline int stop_machine(int (*fn)(void *), void *data,
static inline int __stop_machine(int (*fn)(void *), void *data,
				 const struct cpumask *cpus)
{
	int ret;
@@ -136,5 +136,11 @@ static inline int stop_machine(int (*fn)(void *), void *data,
	return ret;
}

static inline int stop_machine(int (*fn)(void *), void *data,
			       const struct cpumask *cpus)
{
	return __stop_machine(fn, data, cpus);
}

#endif	/* CONFIG_STOP_MACHINE && CONFIG_SMP */
#endif	/* _LINUX_STOP_MACHINE */