Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp405068pxb; Thu, 21 Oct 2021 01:44:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCZPEkN7ZATVKtMAbGfZrRhyJuMmX/nIb+wVgE7xiukPchH56yDOvv8yjCeUqCzHy+ypg3 X-Received: by 2002:a05:6a00:1352:b0:44d:4573:3ac2 with SMTP id k18-20020a056a00135200b0044d45733ac2mr4137528pfu.12.1634805883448; Thu, 21 Oct 2021 01:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634805883; cv=none; d=google.com; s=arc-20160816; b=TXIvnNM87WulcCfRQgHrNJMUXMIFiiS+bO1Wtr/WesPM/x6rs3XTUBUexfy9sTeaH3 VI44641mR0tp/D2prExo8YRhNwSBOQEY/ZMaxYvTRijooN9F22TeVTyBezSTe6hT1/hx 15cNGuzQiQgSUeQvoLjWhHWW/6XNIz6gVLA2nO6PrLQpzQaNri/sixFidH2vGjwAgvyA bWa+6WNStZm2SuyjQwlCsOnx3zl6i12Es+bB77XO8G/miMwqNGvuN/wBmZyqNnvzLLfB ACaHHKCZlqe3EG84yNicUC1JaIlsYL6fT0ES0vR6im/4PWkNgxkFznhZr4YBZj1UwOZm P7wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=mY1lyVHFyK4p6Q9LQNa/2IyAWzCXHGMcsUMRrC2oOsM=; b=yuIHIt6RUqfnx+16Y6BwVTjyn4t3ytR7aIHOj9DZYH7IKprAA8LKN4dUAbfYpsFbbN 9tFwbEAn9eLzSz9JknJ7ejTZCeDGCw7+qNHSJ4Aywy0jLHqL30FyxW3Rx2aeS42RwbKm fFTTcgGS7yGVNb8akFULgmYhH4ijWpE9QdhTtgywVrnYdNefeE15lUSuOfnMmE3ZvsZo FKXqnsmBU5HPUQKLz/4hMYg3MnIyxRX5Edh9SbXzzMFP5rametQyLFQP0bUZMoRwSV+l Us1wGE9vVNqWFmg7F6rfYri5zRTPfvFb4dANBs6hkKoKjnhQ0J8b/Ld05vYlA5KyWZgT 3dXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si7045221pfv.6.2021.10.21.01.44.31; Thu, 21 Oct 2021 01:44:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231467AbhJUIoh (ORCPT + 99 others); Thu, 21 Oct 2021 04:44:37 -0400 Received: from mx22.baidu.com ([220.181.50.185]:45948 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231509AbhJUIod (ORCPT ); Thu, 21 Oct 2021 04:44:33 -0400 Received: from BC-Mail-Ex09.internal.baidu.com (unknown [172.31.51.49]) by Forcepoint Email with ESMTPS id 5AC8D6F1DBA1CD40859A; Thu, 21 Oct 2021 16:42:16 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex09.internal.baidu.com (172.31.51.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Thu, 21 Oct 2021 16:42:16 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 21 Oct 2021 16:42:15 +0800 From: Cai Huoqing To: CC: "James E.J. Bottomley" , "Helge Deller" , , Subject: [PATCH] parisc: Make use of the helper macro kthread_run() Date: Thu, 21 Oct 2021 16:42:13 +0800 Message-ID: <20211021084214.2289-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-EX02.internal.baidu.com (172.31.51.42) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Repalce kthread_create/wake_up_process() with kthread_run() to simplify the code. Signed-off-by: Cai Huoqing --- arch/parisc/kernel/pdt.c | 4 +--- 1 file changed, 1 insertion(+), 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; } -- 2.25.1