]> Git Repo - linux.git/commitdiff
smp: Use smp_call_func_t in on_each_cpu()
authorKaitao Cheng <[email protected]>
Fri, 17 Apr 2020 16:24:51 +0000 (00:24 +0800)
committerThomas Gleixner <[email protected]>
Sun, 19 Apr 2020 15:51:48 +0000 (17:51 +0200)
Use smp_call_func_t instead of the open coded function pointer argument.

Signed-off-by: Kaitao Cheng <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Sebastian Andrzej Siewior <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
kernel/smp.c

index 786092aabdcd6a997f1bbf428aba111421110bea..84303197caf91270dff29b11dfcc9e0e43ffa742 100644 (file)
@@ -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;
 
This page took 0.046841 seconds and 4 git commands to generate.