diff options
author | Kaitao Cheng <pilgrimtao@gmail.com> | 2020-04-17 19:24:51 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-04-19 18:51:48 +0300 |
commit | 58eb7b77ad01f058e523554cb7bae7272a7d2579 (patch) | |
tree | a8a91e8cfee6207db3f386486bf640f26e463572 /kernel/smp.c | |
parent | 50cc09c18985eacbbd666acfd7be2391394733f5 (diff) |
smp: Use smp_call_func_t in on_each_cpu()
Use smp_call_func_t instead of the open coded function pointer argument.
Signed-off-by: Kaitao Cheng <pilgrimtao@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lkml.kernel.org/r/20200417162451.91969-1-pilgrimtao@gmail.com
Diffstat (limited to 'kernel/smp.c')
-rw-r--r-- | kernel/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/smp.c b/kernel/smp.c index 786092aabdcd..84303197caf9 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -620,7 +620,7 @@ void __init smp_init(void) * early_boot_irqs_disabled is set. Use local_irq_save/restore() instead * of local_irq_disable/enable(). */ -void on_each_cpu(void (*func) (void *info), void *info, int wait) +void on_each_cpu(smp_call_func_t func, void *info, int wait) { unsigned long flags; |