aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-06-06 05:18:06 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-06-26 05:24:35 -0400
commit8691e5a8f691cc2a4fda0651e8d307aaba0e7d68 (patch)
tree6cb6767064d2d43441212566da2d83dcc9a0cd8e /include
parent490f5de52a87063fcb40e3b22f61b0779603ff6d (diff)
smp_call_function: get rid of the unused nonatomic/retry argument
It's never used and the comments refer to nonatomic and retry interchangably. So get rid of it. Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-alpha/smp.h2
-rw-r--r--include/asm-sparc/smp.h2
-rw-r--r--include/linux/smp.h8
3 files changed, 6 insertions, 6 deletions
diff --git a/include/asm-alpha/smp.h b/include/asm-alpha/smp.h
index 2f60a362d75e..544c69af8168 100644
--- a/include/asm-alpha/smp.h
+++ b/include/asm-alpha/smp.h
@@ -53,7 +53,7 @@ extern void arch_send_call_function_ipi(cpumask_t mask);
53#else /* CONFIG_SMP */ 53#else /* CONFIG_SMP */
54 54
55#define hard_smp_processor_id() 0 55#define hard_smp_processor_id() 0
56#define smp_call_function_on_cpu(func,info,retry,wait,cpu) ({ 0; }) 56#define smp_call_function_on_cpu(func,info,wait,cpu) ({ 0; })
57 57
58#endif /* CONFIG_SMP */ 58#endif /* CONFIG_SMP */
59 59
diff --git a/include/asm-sparc/smp.h b/include/asm-sparc/smp.h
index e6d561599726..b61e74bea06a 100644
--- a/include/asm-sparc/smp.h
+++ b/include/asm-sparc/smp.h
@@ -72,7 +72,7 @@ static inline void xc5(smpfunc_t func, unsigned long arg1, unsigned long arg2,
72 unsigned long arg3, unsigned long arg4, unsigned long arg5) 72 unsigned long arg3, unsigned long arg4, unsigned long arg5)
73{ smp_cross_call(func, arg1, arg2, arg3, arg4, arg5); } 73{ smp_cross_call(func, arg1, arg2, arg3, arg4, arg5); }
74 74
75static inline int smp_call_function(void (*func)(void *info), void *info, int nonatomic, int wait) 75static inline int smp_call_function(void (*func)(void *info), void *info, int wait)
76{ 76{
77 xc1((smpfunc_t)func, (unsigned long)info); 77 xc1((smpfunc_t)func, (unsigned long)info);
78 return 0; 78 return 0;
diff --git a/include/linux/smp.h b/include/linux/smp.h
index eac3e062250f..338cad1b9548 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -62,11 +62,11 @@ extern void smp_cpus_done(unsigned int max_cpus);
62/* 62/*
63 * Call a function on all other processors 63 * Call a function on all other processors
64 */ 64 */
65int smp_call_function(void(*func)(void *info), void *info, int retry, int wait); 65int smp_call_function(void(*func)(void *info), void *info, int wait);
66int smp_call_function_mask(cpumask_t mask, void(*func)(void *info), void *info, 66int smp_call_function_mask(cpumask_t mask, void(*func)(void *info), void *info,
67 int wait); 67 int wait);
68int smp_call_function_single(int cpuid, void (*func) (void *info), void *info, 68int smp_call_function_single(int cpuid, void (*func) (void *info), void *info,
69 int retry, int wait); 69 int wait);
70void __smp_call_function_single(int cpuid, struct call_single_data *data); 70void __smp_call_function_single(int cpuid, struct call_single_data *data);
71 71
72/* 72/*
@@ -119,7 +119,7 @@ static inline int up_smp_call_function(void (*func)(void *), void *info)
119{ 119{
120 return 0; 120 return 0;
121} 121}
122#define smp_call_function(func, info, retry, wait) \ 122#define smp_call_function(func, info, wait) \
123 (up_smp_call_function(func, info)) 123 (up_smp_call_function(func, info))
124#define on_each_cpu(func,info,retry,wait) \ 124#define on_each_cpu(func,info,retry,wait) \
125 ({ \ 125 ({ \
@@ -131,7 +131,7 @@ static inline int up_smp_call_function(void (*func)(void *), void *info)
131static inline void smp_send_reschedule(int cpu) { } 131static inline void smp_send_reschedule(int cpu) { }
132#define num_booting_cpus() 1 132#define num_booting_cpus() 1
133#define smp_prepare_boot_cpu() do {} while (0) 133#define smp_prepare_boot_cpu() do {} while (0)
134#define smp_call_function_single(cpuid, func, info, retry, wait) \ 134#define smp_call_function_single(cpuid, func, info, wait) \
135({ \ 135({ \
136 WARN_ON(cpuid != 0); \ 136 WARN_ON(cpuid != 0); \
137 local_irq_disable(); \ 137 local_irq_disable(); \