]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/stop_machine.h
stop_machine: add ALL_CPUS option
[linux-2.6-omap-h63xx.git] / include / linux / stop_machine.h
index 5bfc553bdb21f0d5d4353f12c6a13fd802613000..18af011c13af390d2746db739c98347caacb4ddf 100644 (file)
@@ -8,11 +8,17 @@
 #include <asm/system.h>
 
 #if defined(CONFIG_STOP_MACHINE) && defined(CONFIG_SMP)
+
+#define ALL_CPUS ~0U
+
 /**
  * stop_machine_run: freeze the machine on all CPUs and run this function
  * @fn: the function to run
  * @data: the data ptr for the @fn()
- * @cpu: the cpu to run @fn() on (or any, if @cpu == NR_CPUS.
+ * @cpu: if @cpu == n, run @fn() on cpu n
+ *       if @cpu == NR_CPUS, run @fn() on any cpu
+ *       if @cpu == ALL_CPUS, run @fn() first on the calling cpu, and then
+ *       concurrently on all the other cpus
  *
  * Description: This causes a thread to be scheduled on every other cpu,
  * each of which disables interrupts, and finally interrupts are disabled