Skip to contentSkip to conversation

kernel/smp: Use smp_call_func_t in on_each_cpu()

PATCH Superseded chengkaitao 1 participant 1 message Feb 17, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/smp: Use smp_call_func_t in on_each_cpu()

From: Kaitao Cheng <[email protected]>

There is already a typedef smp_call_func_t, so we can just use it, maybe better.

Fixes 3a5f65df5a0fc ("Typedef SMP call function pointer")
---
 kernel/smp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/smp.c +1 -1
index d0ada39eb4d4..6819a3f114be 100644
@@ -619,7 +619,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;
 
Signature · 1 line
2.20.1