Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4 -6
+4 -6
arch/arm/common/bL_switcher.c
··· 307 307 { 308 308 struct task_struct *task; 309 309 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)) 316 313 pr_err("%s failed for CPU %d\n", __func__, cpu); 314 + 317 315 return task; 318 316 } 319 317