Skip to content

Commit 294fca6

Browse files
author
Frederic Weisbecker
committed
kallsyms: Use kthread_run_on_cpu()
Use the proper API instead of open coding it. Signed-off-by: Frederic Weisbecker <[email protected]>
1 parent 76f99fc commit 294fca6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kernel/kallsyms_selftest.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -435,13 +435,11 @@ static int __init kallsyms_test_init(void)
435435
{
436436
struct task_struct *t;
437437

438-
t = kthread_create(test_entry, NULL, "kallsyms_test");
438+
t = kthread_run_on_cpu(test_entry, NULL, 0, "kallsyms_test");
439439
if (IS_ERR(t)) {
440440
pr_info("Create kallsyms selftest task failed\n");
441441
return PTR_ERR(t);
442442
}
443-
kthread_bind(t, 0);
444-
wake_up_process(t);
445443

446444
return 0;
447445
}

0 commit comments

Comments
 (0)