Skip to content

Commit 58eb7b7

Browse files
chengkaitaoKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Sebastian Andrzej Siewior <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 50cc09c commit 58eb7b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ void __init smp_init(void)
620620
* early_boot_irqs_disabled is set. Use local_irq_save/restore() instead
621621
* of local_irq_disable/enable().
622622
*/
623-
void on_each_cpu(void (*func) (void *info), void *info, int wait)
623+
void on_each_cpu(smp_call_func_t func, void *info, int wait)
624624
{
625625
unsigned long flags;
626626

0 commit comments

Comments
 (0)