Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp551473pxb; Thu, 21 Oct 2021 05:04:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDKHLYK7v/+eV+MiFgbBDW3jX6w3YJ50Y7Z3g828BHFRhTOUWkygEUNptCV2vVmjSeE6nz X-Received: by 2002:a17:90a:bd04:: with SMTP id y4mr6060272pjr.99.1634817850030; Thu, 21 Oct 2021 05:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634817850; cv=none; d=google.com; s=arc-20160816; b=DQ311ZCXPV960JchVtjkZFWRWEp4n8vps1NgxBKBUSxJ6OWe0KRS8SzNVpkrRlX3eB 2Xltq9GeXlIKmstt34xkz/e5Se2V7PkUM6Oa139AnWcsi2wneBfKGby13LMWX73XpA9E hDpoWdJAZUDpAizizfTYOinInZ+SI8ozwKn1/8R3sAB+Nmmi7/dleKToDb2sihRU3zsE unyF8lQaP8IL48/6X8zp6qtomvnujrh9bVUXVxtelokUgai694lyuhkRnk5nxb7Ks0Ei 6EVNsUrP7e31a+keTo8nSE+j750vT5cs6+4w4y4X1mAjfvsFpz9N6tmAtWHH5IzXsaIx qK9g== 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=KQdhD7ebs1JhGke4Cldcf5ArCBvBbqOz/DVV5qRU32I=; b=llsbw/WBwL3pzu800tMYoJeqTq333qkmBUFJd36RtgSStYcNdMEdjGtFu6rljn31ac GyLqGgWmfByPd2XoMxdwodtGaQ/dJh44MoE3doPHjCKj0AGuJPn79PzxrQ8gud8dn08i Dj/rGgKBzMdw+vRUKa/hIdDtjYPjprHg807vZ92KaO/wXszUy+V7BpI8ieH8R6oVGyfW ufZ5y7nS1FfHfjRaNixQkBi4k55nE8pMk5/dErUbgWyxwN1SdSM5r0YONcEC4obU8aSj xXJCEGGhAuYAMorjXAzl1v+BhikI5v7heI2ze7Ke9LluoFlb7eYKt0YY/iIV18QfkTCw 4XOA== 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 p5si6601462plo.204.2021.10.21.05.03.47; Thu, 21 Oct 2021 05:04:10 -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 S230505AbhJUMEI (ORCPT + 99 others); Thu, 21 Oct 2021 08:04:08 -0400 Received: from mx24.baidu.com ([111.206.215.185]:42234 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230231AbhJUMEH (ORCPT ); Thu, 21 Oct 2021 08:04:07 -0400 Received: from BC-Mail-Ex14.internal.baidu.com (unknown [172.31.51.54]) by Forcepoint Email with ESMTPS id 2F5A7EB1F769EEB57D21; Thu, 21 Oct 2021 20:01:42 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex14.internal.baidu.com (172.31.51.54) 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 20:01:42 +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 20:01:40 +0800 From: Cai Huoqing To: CC: Bernard Metzler , Doug Ledford , Jason Gunthorpe , Davidlohr Bueso , "Paul E. McKenney" , Josh Triplett , "Steven Rostedt" , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , Ingo Molnar , Daniel Bristot de Oliveira , , , Subject: [PATCH 0/6] kthread: Add the helper macro kthread_run_on_cpu() Date: Thu, 21 Oct 2021 20:01:29 +0800 Message-ID: <20211021120135.3003-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-EX04.internal.baidu.com (172.31.51.44) 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 macro kthread_run_on_cpu() inculdes 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. Cai Huoqing (6): kthread: Add the helper macro kthread_run_on_cpu() RDMA/siw: Make use of the helper macro kthread_run_on_cpu() ring-buffer: Make use of the helper macro kthread_run_on_cpu() rcutorture: Make use of the helper macro kthread_run_on_cpu() trace/osnoise: Make use of the helper macro kthread_run_on_cpu() trace/hwlat: Make use of the helper macro kthread_run_on_cpu() drivers/infiniband/sw/siw/siw_main.c | 7 +++---- include/linux/kthread.h | 22 ++++++++++++++++++++++ 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, 31 insertions(+), 21 deletions(-) -- 2.25.1