]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
parisc: Make use of the helper macro kthread_run()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 21 Oct 2021 08:42:13 +0000 (16:42 +0800)
committerHelge 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

index fcc761b0e11b96a13299040127a32547d957ad61..e391b175f5eceed27086eaa51d9f1d3fad1b3aad 100644 (file)
@@ -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;
 }