mbox series

[v2,0/6] kthread: Add the helper macro kthread_run_on_cpu()

Message ID 20211021122758.3092-1-caihuoqing@baidu.com (mailing list archive)
Headers show
Series kthread: Add the helper macro kthread_run_on_cpu() | expand

Message

Cai,Huoqing Oct. 21, 2021, 12:27 p.m. UTC
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(-)

Comments

Bart Van Assche Oct. 21, 2021, 4:31 p.m. UTC | #1
On 10/21/21 5:27 AM, Cai Huoqing wrote:
> the helper macro kthread_run_on_cpu() inculdes

Consider using a spelling checker (inculdes -> includes).


Thanks,

Bart.