mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-14 19:53:03 +00:00
arm/bL_switcher: Use kthread_run_on_cpu()
Use the proper API instead of open coding it. Reviewed-by: Dave Martin <Dave.Martin@arm.com> Acked-by: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
This commit is contained in:
parent
fac04efc5c
commit
26e6057674
1 changed files with 4 additions and 6 deletions
|
@ -307,13 +307,11 @@ static struct task_struct *bL_switcher_thread_create(int cpu, void *arg)
|
||||||
{
|
{
|
||||||
struct task_struct *task;
|
struct task_struct *task;
|
||||||
|
|
||||||
task = kthread_create_on_node(bL_switcher_thread, arg,
|
task = kthread_run_on_cpu(bL_switcher_thread, arg,
|
||||||
cpu_to_node(cpu), "kswitcher_%d", cpu);
|
cpu, "kswitcher_%d");
|
||||||
if (!IS_ERR(task)) {
|
if (IS_ERR(task))
|
||||||
kthread_bind(task, cpu);
|
|
||||||
wake_up_process(task);
|
|
||||||
} else
|
|
||||||
pr_err("%s failed for CPU %d\n", __func__, cpu);
|
pr_err("%s failed for CPU %d\n", __func__, cpu);
|
||||||
|
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue