* [PATCH] kernel/smp: Use smp_call_func_t in on_each_cpu()
@ 2020-02-17 14:26 chengkaitao
0 siblings, 0 replies; only message in thread
From: chengkaitao @ 2020-02-17 14:26 UTC (permalink / raw)
To: tglx; +Cc: peterz, bigeasy, namit, linux-kernel, smuchun, Kaitao Cheng
From: Kaitao Cheng <pilgrimtao@gmail.com>
There is already a typedef smp_call_func_t, so we can just use it,
maybe better.
Fixes: 3a5f65df5a0fc ("Typedef SMP call function pointer")
Signed-off-by: Kaitao Cheng <pilgrimtao@gmail.com>
---
kernel/smp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/smp.c b/kernel/smp.c
index d0ada39eb4d4..6819a3f114be 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -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;
--
2.20.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-17 14:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-17 14:26 [PATCH] kernel/smp: Use smp_call_func_t in on_each_cpu() chengkaitao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®