Skip to content

Commit 26e6057

Browse files
author
Frederic Weisbecker
committed
arm/bL_switcher: Use kthread_run_on_cpu()
Use the proper API instead of open coding it. Reviewed-by: Dave Martin <[email protected]> Acked-by: Nicolas Pitre <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
1 parent fac04ef commit 26e6057

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

arch/arm/common/bL_switcher.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,11 @@ static struct task_struct *bL_switcher_thread_create(int cpu, void *arg)
307307
{
308308
struct task_struct *task;
309309

310-
task = kthread_create_on_node(bL_switcher_thread, arg,
311-
cpu_to_node(cpu), "kswitcher_%d", cpu);
312-
if (!IS_ERR(task)) {
313-
kthread_bind(task, cpu);
314-
wake_up_process(task);
315-
} else
310+
task = kthread_run_on_cpu(bL_switcher_thread, arg,
311+
cpu, "kswitcher_%d");
312+
if (IS_ERR(task))
316313
pr_err("%s failed for CPU %d\n", __func__, cpu);
314+
317315
return task;
318316
}
319317

0 commit comments

Comments
 (0)