Skip to contentSkip to conversation

core/ipi changes for v2.6.33

GIT PULL Ingo Molnar 1 participant 1 message Dec 3, 2009

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest core-ipi-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git core-ipi-for-linus

Thanks,

Ingo

------------------>
Rusty Russell (1):
generic-ipi: Add smp_call_function_any()

Sheng Yang (1):
generic-ipi: Fix misleading smp_call_function*() description

 include/linux/smp.h |   11 +++++++++-
 kernel/smp.c        |   56 +++++++++++++++++++++++++++++++++++++++++++-------
 2 files changed, 58 insertions(+), 9 deletions(-)
include/linux/smp.h +10 -1
index 39c64ba..7a0570e 100644
@@ -76,6 +76,9 @@ void smp_call_function_many(const struct cpumask *mask,
 void __smp_call_function_single(int cpuid, struct call_single_data *data,
 				int wait);
 
+int smp_call_function_any(const struct cpumask *mask,
+			  void (*func)(void *info), void *info, int wait);
+
 /*
  * Generic and arch helpers
  */
@@ -137,9 +140,15 @@ static inline void smp_send_reschedule(int cpu) { }
 #define smp_prepare_boot_cpu()			do {} while (0)
 #define smp_call_function_many(mask, func, info, wait) \
 			(up_smp_call_function(func, info))
-static inline void init_call_single_data(void)
+static inline void init_call_single_data(void) { }
+
+static inline int
+smp_call_function_any(const struct cpumask *mask, void (*func)(void *info),
+		      void *info, int wait)
 {
+	return smp_call_function_single(0, func, info, wait);
 }
+
 #endif /* !SMP */
 
 /*
kernel/smp.c +48 -8

80 lines not on this page · raw message