mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
firmware: stratix10-svc: Use kthread_run_on_cpu()
Use the proper API instead of open coding it. Signed-off-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
This commit is contained in:
parent
40384c840e
commit
d31679f42e
1 changed files with 3 additions and 6 deletions
|
|
@ -967,18 +967,15 @@ int stratix10_svc_send(struct stratix10_svc_chan *chan, void *msg)
|
||||||
/* first client will create kernel thread */
|
/* first client will create kernel thread */
|
||||||
if (!chan->ctrl->task) {
|
if (!chan->ctrl->task) {
|
||||||
chan->ctrl->task =
|
chan->ctrl->task =
|
||||||
kthread_create_on_node(svc_normal_to_secure_thread,
|
kthread_run_on_cpu(svc_normal_to_secure_thread,
|
||||||
(void *)chan->ctrl,
|
(void *)chan->ctrl,
|
||||||
cpu_to_node(cpu),
|
cpu, "svc_smc_hvc_thread");
|
||||||
"svc_smc_hvc_thread");
|
|
||||||
if (IS_ERR(chan->ctrl->task)) {
|
if (IS_ERR(chan->ctrl->task)) {
|
||||||
dev_err(chan->ctrl->dev,
|
dev_err(chan->ctrl->dev,
|
||||||
"failed to create svc_smc_hvc_thread\n");
|
"failed to create svc_smc_hvc_thread\n");
|
||||||
kfree(p_data);
|
kfree(p_data);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
kthread_bind(chan->ctrl->task, cpu);
|
|
||||||
wake_up_process(chan->ctrl->task);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pr_debug("%s: sent P-va=%p, P-com=%x, P-size=%u\n", __func__,
|
pr_debug("%s: sent P-va=%p, P-com=%x, P-size=%u\n", __func__,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue