projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb6a16
)
parisc: Make use of the helper macro kthread_run()
author
Cai Huoqing
<caihuoqing@baidu.com>
Thu, 21 Oct 2021 08:42:13 +0000
(16:42 +0800)
committer
Helge Deller
<deller@gmx.de>
Mon, 1 Nov 2021 06:36:01 +0000
(07:36 +0100)
Replace kthread_create/wake_up_process() with kthread_run()
to simplify the code.
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/pdt.c
patch
|
blob
|
history
diff --git
a/arch/parisc/kernel/pdt.c
b/arch/parisc/kernel/pdt.c
index
fcc761b
..
e391b17
100644
(file)
--- a/
arch/parisc/kernel/pdt.c
+++ b/
arch/parisc/kernel/pdt.c
@@
-352,12
+352,10
@@
static int __init pdt_initcall(void)
if (pdt_type == PDT_NONE)
return -ENODEV;
- kpdtd_task = kthread_
create
(pdt_mainloop, NULL, "kpdtd");
+ kpdtd_task = kthread_
run
(pdt_mainloop, NULL, "kpdtd");
if (IS_ERR(kpdtd_task))
return PTR_ERR(kpdtd_task);
- wake_up_process(kpdtd_task);
-
return 0;
}