diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/stop_machine.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/stop_machine.h b/include/linux/stop_machine.h index 5bfc553bdb21..18af011c13af 100644 --- a/include/linux/stop_machine.h +++ b/include/linux/stop_machine.h | |||
@@ -8,11 +8,17 @@ | |||
8 | #include <asm/system.h> | 8 | #include <asm/system.h> |
9 | 9 | ||
10 | #if defined(CONFIG_STOP_MACHINE) && defined(CONFIG_SMP) | 10 | #if defined(CONFIG_STOP_MACHINE) && defined(CONFIG_SMP) |
11 | |||
12 | #define ALL_CPUS ~0U | ||
13 | |||
11 | /** | 14 | /** |
12 | * stop_machine_run: freeze the machine on all CPUs and run this function | 15 | * stop_machine_run: freeze the machine on all CPUs and run this function |
13 | * @fn: the function to run | 16 | * @fn: the function to run |
14 | * @data: the data ptr for the @fn() | 17 | * @data: the data ptr for the @fn() |
15 | * @cpu: the cpu to run @fn() on (or any, if @cpu == NR_CPUS. | 18 | * @cpu: if @cpu == n, run @fn() on cpu n |
19 | * if @cpu == NR_CPUS, run @fn() on any cpu | ||
20 | * if @cpu == ALL_CPUS, run @fn() first on the calling cpu, and then | ||
21 | * concurrently on all the other cpus | ||
16 | * | 22 | * |
17 | * Description: This causes a thread to be scheduled on every other cpu, | 23 | * Description: This causes a thread to be scheduled on every other cpu, |
18 | * each of which disables interrupts, and finally interrupts are disabled | 24 | * each of which disables interrupts, and finally interrupts are disabled |