diff options
author | Oleg Nesterov <oleg@redhat.com> | 2015-06-29 21:29:55 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-08-03 06:21:27 -0400 |
commit | 9a301f22faac7fc2207ee49c1855a6b4ba9c5a52 (patch) | |
tree | f8a806fa897a55f5a3a0b1055a979ac6146d66bb /include/linux/stop_machine.h | |
parent | 7eeb088e72048bf4660f64fc3824c8066cf17591 (diff) |
stop_machine: Use 'cpu_stop_fn_t' where possible
Cosmetic, but 'cpu_stop_fn_t' actually makes the code more readable and
it doesn't break cscope. And most of the declarations already use it.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: dave@stgolabs.net
Cc: der.herr@hofr.at
Cc: paulmck@linux.vnet.ibm.com
Cc: riel@redhat.com
Cc: viro@ZenIV.linux.org.uk
Link: http://lkml.kernel.org/r/20150630012955.GA23937@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/stop_machine.h')
-rw-r--r-- | include/linux/stop_machine.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/stop_machine.h b/include/linux/stop_machine.h index 0fca276a0537..414d924318ce 100644 --- a/include/linux/stop_machine.h +++ b/include/linux/stop_machine.h | |||
@@ -112,13 +112,13 @@ static inline int try_stop_cpus(const struct cpumask *cpumask, | |||
112 | * | 112 | * |
113 | * This can be thought of as a very heavy write lock, equivalent to | 113 | * This can be thought of as a very heavy write lock, equivalent to |
114 | * grabbing every spinlock in the kernel. */ | 114 | * grabbing every spinlock in the kernel. */ |
115 | int stop_machine(int (*fn)(void *), void *data, const struct cpumask *cpus); | 115 | int stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus); |
116 | 116 | ||
117 | int stop_machine_from_inactive_cpu(int (*fn)(void *), void *data, | 117 | int stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data, |
118 | const struct cpumask *cpus); | 118 | const struct cpumask *cpus); |
119 | #else /* CONFIG_STOP_MACHINE && CONFIG_SMP */ | 119 | #else /* CONFIG_STOP_MACHINE && CONFIG_SMP */ |
120 | 120 | ||
121 | static inline int stop_machine(int (*fn)(void *), void *data, | 121 | static inline int stop_machine(cpu_stop_fn_t fn, void *data, |
122 | const struct cpumask *cpus) | 122 | const struct cpumask *cpus) |
123 | { | 123 | { |
124 | unsigned long flags; | 124 | unsigned long flags; |
@@ -129,7 +129,7 @@ static inline int stop_machine(int (*fn)(void *), void *data, | |||
129 | return ret; | 129 | return ret; |
130 | } | 130 | } |
131 | 131 | ||
132 | static inline int stop_machine_from_inactive_cpu(int (*fn)(void *), void *data, | 132 | static inline int stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data, |
133 | const struct cpumask *cpus) | 133 | const struct cpumask *cpus) |
134 | { | 134 | { |
135 | return stop_machine(fn, data, cpus); | 135 | return stop_machine(fn, data, cpus); |