Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1269297pxb; Thu, 21 Oct 2021 20:00:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziV/ZNcXjVkwj9VoIMJSHuV3Wtwu0gWLcElBrS2WHj+YQj74ZKB9N0PYmg9tMtZTlUCq14 X-Received: by 2002:a17:902:c401:b0:13e:f5f2:f852 with SMTP id k1-20020a170902c40100b0013ef5f2f852mr8899567plk.29.1634871650277; Thu, 21 Oct 2021 20:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634871650; cv=none; d=google.com; s=arc-20160816; b=a9ZT72YNgN98D8drb8aBHaU0dYAETlMS0CIqH3YoE5yMcFqxNBbPHpOkBOolzo4QHR 1IVF404ljME0I4/pv1bMAAgCswBPK2LO+/hdYknyVoGrNtkR/NVlf7TRTPkblhcuHumb n6dHQ5ioR/A0QrAMPIHuqdRTfHX3Fz7rKI4N9+nL29WMiT1jDULjgeVUAL56Ic2BAfC4 EGXlrrPFvxY2BcsgaQJ+gC2NlmnmOFddb9YWov4BIYRsYw4bLZacGi34kc0n4FsDdnJq cvh1avvLVELxT8kZLd1fg/b7sLx7HSN38g7YNHAkBSjwYCdVs1MniqzETmtnT2TL5TpS 6MUA== 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=EGHNMYO0bokRaF3IrmR3WN16gxRlvCdh446bxFM+Km4=; b=YT9sdnJEefIMFIPQLC1YCTrqxTiTyWOANZeNcsMe7i7/cB3EJKGVja3XMAaEFe5Vo7 9s80haCg1uM36horbU6pvoG5aRrm/jIG/fmOq77qFD+85tuu6HJdPnmX3qWKoPfczjsi j4VoPBPsoS5yRtBDZZvic+MUfKpjdK0CwwhSfqf3Z9wDbcwSM3LR7HEmditATBY8gX6s +jMAnFmupWh+y4TpQxoL2akuIKCwUxpEJlGNSZiSVjGXCMOkEN+hD4y5rlXP2yTsM11O /80o4ygAujCOdPdz0HmmfGySCz+ewL+ZyvFj2+NV8M1y/yBKdJ4+7bgjHdmD9rYPimYF 94fA== 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 e25si10991864pgv.258.2021.10.21.20.00.35; Thu, 21 Oct 2021 20:00:50 -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 S232702AbhJVDBg (ORCPT + 99 others); Thu, 21 Oct 2021 23:01:36 -0400 Received: from mx22.baidu.com ([220.181.50.185]:50486 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232657AbhJVDBc (ORCPT ); Thu, 21 Oct 2021 23:01:32 -0400 Received: from BC-Mail-Ex12.internal.baidu.com (unknown [172.31.51.52]) by Forcepoint Email with ESMTPS id BA70147A04D3CBAC11F1; Fri, 22 Oct 2021 10:59:00 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex12.internal.baidu.com (172.31.51.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Fri, 22 Oct 2021 10:59:00 +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; Fri, 22 Oct 2021 10:58:59 +0800 From: Cai Huoqing To: CC: Cai Huoqing , Bernard Metzler , Doug Ledford , Jason Gunthorpe , "Davidlohr Bueso" , "Paul E. McKenney" , "Josh Triplett" , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , Ingo Molnar , Daniel Bristot de Oliveira , , , Subject: [PATCH v3 0/6] kthread: Add the helper function kthread_run_on_cpu() Date: Fri, 22 Oct 2021 10:57:03 +0800 Message-ID: <20211022025711.3673-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-Ex28.internal.baidu.com (172.31.51.22) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org the helper function kthread_run_on_cpu() includes kthread_create_on_cpu/wake_up_process(). In some cases, use kthread_run_on_cpu() directly instead of kthread_create_on_node/kthread_bind/wake_up_process() or kthread_create_on_cpu/wake_up_process() or kthreadd_create/kthread_bind/wake_up_process() to simplify the code. v1->v2: *Remove cpu_to_node from kthread_create_on_cpu params. *Updated the macro description comment. v2->v3: *Convert this helper macro to static inline function *Fix typo in changelog *Update changelog v1 link: https://lore.kernel.org/lkml/20211021120135.3003-2-caihuoqing@baidu.com/ v2 link: https://lore.kernel.org/lkml/20211021122758.3092-2-caihuoqing@baidu.com/ Cai Huoqing (6): kthread: Add the helper function kthread_run_on_cpu() RDMA/siw: Make use of the helper function kthread_run_on_cpu() ring-buffer: Make use of the helper function kthread_run_on_cpu() rcutorture: Make use of the helper function kthread_run_on_cpu() trace/osnoise: Make use of the helper function kthread_run_on_cpu() trace/hwlat: Make use of the helper function kthread_run_on_cpu() drivers/infiniband/sw/siw/siw_main.c | 7 +++---- include/linux/kthread.h | 25 +++++++++++++++++++++++++ kernel/rcu/rcutorture.c | 7 ++----- kernel/trace/ring_buffer.c | 7 ++----- kernel/trace/trace_hwlat.c | 6 +----- kernel/trace/trace_osnoise.c | 3 +-- 6 files changed, 34 insertions(+), 21 deletions(-) -- 2.25.1