projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76f99fc
)
kallsyms: Use kthread_run_on_cpu()
author
Frederic Weisbecker
<frederic@kernel.org>
Thu, 26 Sep 2024 22:48:56 +0000
(
00:48
+0200)
committer
Frederic Weisbecker
<frederic@kernel.org>
Thu, 2 Jan 2025 21:12:12 +0000
(22:12 +0100)
Use the proper API instead of open coding it.
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/kallsyms_selftest.c
patch
|
blob
|
history
diff --git
a/kernel/kallsyms_selftest.c
b/kernel/kallsyms_selftest.c
index
873f7c4
..
cf4af57
100644
(file)
--- 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;
}