diff options
author | 2024-09-27 00:48:56 +0200 | |
---|---|---|
committer | 2025-01-02 22:12:12 +0100 | |
commit | 294fca60223ad2b87dfc5df03a95f044a2cd61a1 (patch) | |
tree | a0494b3968311a0207ab7a699a9448f9fa466823 | |
parent | soc/qman: test: Use kthread_run_on_cpu() (diff) | |
download | linux-rng-294fca60223ad2b87dfc5df03a95f044a2cd61a1.tar.xz linux-rng-294fca60223ad2b87dfc5df03a95f044a2cd61a1.zip |
kallsyms: Use kthread_run_on_cpu()
Use the proper API instead of open coding it.
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
-rw-r--r-- | kernel/kallsyms_selftest.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/kallsyms_selftest.c b/kernel/kallsyms_selftest.c index 873f7c445488..cf4af5728307 100644 --- a/kernel/kallsyms_selftest.c +++ b/kernel/kallsyms_selftest.c @@ -435,13 +435,11 @@ static int __init kallsyms_test_init(void) { 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)) { pr_info("Create kallsyms selftest task failed\n"); return PTR_ERR(t); } - kthread_bind(t, 0); - wake_up_process(t); return 0; } |