aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/up.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/up.c')
-rw-r--r--kernel/up.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/kernel/up.c b/kernel/up.c
index 42c46bf3e0a5..ff536f9cc8a2 100644
--- a/kernel/up.c
+++ b/kernel/up.c
@@ -68,9 +68,9 @@ EXPORT_SYMBOL(on_each_cpu_mask);
68 * Preemption is disabled here to make sure the cond_func is called under the 68 * Preemption is disabled here to make sure the cond_func is called under the
69 * same condtions in UP and SMP. 69 * same condtions in UP and SMP.
70 */ 70 */
71void on_each_cpu_cond(bool (*cond_func)(int cpu, void *info), 71void on_each_cpu_cond_mask(bool (*cond_func)(int cpu, void *info),
72 smp_call_func_t func, void *info, bool wait, 72 smp_call_func_t func, void *info, bool wait,
73 gfp_t gfp_flags) 73 gfp_t gfp_flags, const struct cpumask *mask)
74{ 74{
75 unsigned long flags; 75 unsigned long flags;
76 76
@@ -82,6 +82,14 @@ void on_each_cpu_cond(bool (*cond_func)(int cpu, void *info),
82 } 82 }
83 preempt_enable(); 83 preempt_enable();
84} 84}
85EXPORT_SYMBOL(on_each_cpu_cond_mask);
86
87void on_each_cpu_cond(bool (*cond_func)(int cpu, void *info),
88 smp_call_func_t func, void *info, bool wait,
89 gfp_t gfp_flags)
90{
91 on_each_cpu_cond_mask(cond_func, func, info, wait, gfp_flags, NULL);
92}
85EXPORT_SYMBOL(on_each_cpu_cond); 93EXPORT_SYMBOL(on_each_cpu_cond);
86 94
87int smp_call_on_cpu(unsigned int cpu, int (*func)(void *), void *par, bool phys) 95int smp_call_on_cpu(unsigned int cpu, int (*func)(void *), void *par, bool phys)