mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 02:05:33 +00:00
kallsyms: Use kthread_run_on_cpu()
Use the proper API instead of open coding it. Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
This commit is contained in:
parent
76f99fc156
commit
294fca6022
@ -435,13 +435,11 @@ static int __init kallsyms_test_init(void)
|
|||||||
{
|
{
|
||||||
struct task_struct *t;
|
struct task_struct *t;
|
||||||
|
|
||||||
t = kthread_create(test_entry, NULL, "kallsyms_test");
|
t = kthread_run_on_cpu(test_entry, NULL, 0, "kallsyms_test");
|
||||||
if (IS_ERR(t)) {
|
if (IS_ERR(t)) {
|
||||||
pr_info("Create kallsyms selftest task failed\n");
|
pr_info("Create kallsyms selftest task failed\n");
|
||||||
return PTR_ERR(t);
|
return PTR_ERR(t);
|
||||||
}
|
}
|
||||||
kthread_bind(t, 0);
|
|
||||||
wake_up_process(t);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user