diff options
author | Cai Huoqing <caihuoqing@baidu.com> | 2021-10-21 10:42:13 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2021-11-01 07:36:01 +0100 |
commit | d1fbab7e203ec1119d6f254b3ec9eb10b8e7df8d (patch) | |
tree | 0105c3f73ad46311b4de350f3790990316410829 /arch/parisc/kernel | |
parent | parisc: mark xchg functions notrace (diff) | |
download | linux-d1fbab7e203ec1119d6f254b3ec9eb10b8e7df8d.tar.xz linux-d1fbab7e203ec1119d6f254b3ec9eb10b8e7df8d.zip |
parisc: Make use of the helper macro kthread_run()
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>
Diffstat (limited to 'arch/parisc/kernel')
-rw-r--r-- | arch/parisc/kernel/pdt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/parisc/kernel/pdt.c b/arch/parisc/kernel/pdt.c index fcc761b0e11b..e391b175f5ec 100644 --- 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; } |