Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp575009pxb; Thu, 21 Oct 2021 05:31:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz809Thfv+KlpQomu3VDO5Jq4hK0BbdbEBq4t+WRCcXE0onG5zkFR5fQoy98MO6XosPWyP9 X-Received: by 2002:a1c:2785:: with SMTP id n127mr6227301wmn.155.1634819491237; Thu, 21 Oct 2021 05:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634819491; cv=none; d=google.com; s=arc-20160816; b=R7YR0ad8cBRMTLMk0rHpEIfezJ3fvQGORxGrFIJOnLtuBszAOYIXU/1XATLp/MPV56 D8UF6ItybvwuqaDnNtnuxxVYnQRdJt7/CqufwtSQs83t0VKDitwGp7UlLN60u4u389WS E/rY3ncs2ktDawBYQDSijT/miDLCmneCJR2W79mg/OKAsWz6TtUnRD1WGs7cbeqzfTei VcRD+HLLN+APvfdomNoOk3UTe2eLffRW6eZJOaYPFfLqb+XOFgKt2bFfcFrqlMN0IEK7 JtAII7ZullgQF27wYYJtGJIYC8mywZiFt9NnrvM0snUJti9R9+MHpsKlyeY4fpKZ/EZl sOWQ== 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=QgVV6UNgODy81oM/Dfe91fZt7wImrG/0f0e8gdPLbgk=; b=XEVnszu84fUfg6YPXLG/0hXfQSaMN4tD4Z6Xw+rcp4TPmghuCfx5EAgFgHnfEHujJc N/RqW4ViOyIvmfVGyEIq1d0WsR8PXB9dL69aEK5JI8DzB0z8n8JHag+GKlmczu0NzRWT olS+0w7SrI7tkVe33OCKlJGxqfISSZxKobGIkdOkdwaiEu0RZ4It2GKFiLKPL2f9xeu2 5AsUAbqDiBmxQkG6f7uxFRrISZzDmIPmMDCFIgTrBBlp+xQycp9mdO1cq/Ffol+rSJ0o Ii+wltTGUKkLSfoHnYwq2V9jMr6Kf2S54t/aRwGTY81GMDRoo/s0qEvfKu//B7zn/26i ElQw== 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 g14si7242825ejb.50.2021.10.21.05.31.05; Thu, 21 Oct 2021 05:31:31 -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 S231561AbhJUMaV (ORCPT + 99 others); Thu, 21 Oct 2021 08:30:21 -0400 Received: from mx24.baidu.com ([111.206.215.185]:41504 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231297AbhJUMaU (ORCPT ); Thu, 21 Oct 2021 08:30:20 -0400 Received: from BC-Mail-Ex29.internal.baidu.com (unknown [172.31.51.23]) by Forcepoint Email with ESMTPS id 6DA8A481ED7F1177F00A; Thu, 21 Oct 2021 20:28:02 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex29.internal.baidu.com (172.31.51.23) 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:28:02 +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:28:01 +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 v2 0/6] kthread: Add the helper macro kthread_run_on_cpu() Date: Thu, 21 Oct 2021 20:27:51 +0800 Message-ID: <20211021122758.3092-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-Ex10.internal.baidu.com (172.31.51.50) 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. v1->v2: *[1/6]Remove cpu_to_node from kthread_create_on_cpu params. *[1/6]Updated the macro description comment. *[4,5/6]Update changelog 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 | 21 +++++++++++++++++++++ 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