]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/up.c
uprobes: Teach __create_xol_area() to accept the predefined vaddr
[karo-tx-linux.git] / kernel / up.c
index b1cf036255f3fc241809af9bce0e0c8dd1bae4ca..630d72bf7e4173d2c47272ea7ce63012007ab192 100644 (file)
@@ -22,6 +22,17 @@ int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
 }
 EXPORT_SYMBOL(smp_call_function_single);
 
+int on_each_cpu(smp_call_func_t func, void *info, int wait)
+{
+       unsigned long flags;
+
+       local_irq_save(flags);
+       func(info);
+       local_irq_restore(flags);
+       return 0;
+}
+EXPORT_SYMBOL(on_each_cpu);
+
 /*
  * Note we still need to test the mask even for UP
  * because we actually can get an empty mask from