From: chengkaitao <pilgrimtao@gmail.com>
To: tglx@linutronix.de
Cc: peterz@infradead.org, bigeasy@linutronix.de, namit@vmware.com,
linux-kernel@vger.kernel.org, smuchun@gmail.com,
Kaitao Cheng <pilgrimtao@gmail.com>
Subject: [PATCH] kernel/smp: Use smp_call_func_t in on_each_cpu()
Date: Mon, 17 Feb 2020 06:26:16 -0800 [thread overview]
Message-ID: <20200217142616.3510-1-pilgrimtao@gmail.com> (raw)
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
reply other threads:[~2020-02-17 14:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200217142616.3510-1-pilgrimtao@gmail.com \
--to=pilgrimtao@gmail.com \
--cc=bigeasy@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=namit@vmware.com \
--cc=peterz@infradead.org \
--cc=smuchun@gmail.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®