Skip to content

Commit

Permalink
kthread: remove comments about old _do_fork() helper
Browse files Browse the repository at this point in the history
The old _do_fork() helper has been removed in favor of kernel_clone().
Here correct some comments which still contain _do_fork()

Link: https://lore.kernel.org/r/20210111104807.18022-1-yanfei.xu@windriver.com
Cc: christian@brauner.io
Cc: linux-kernel@vger.kernel.org
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Yanfei Xu authored and Christian Brauner committed Jan 11, 2021
1 parent 96e1e98 commit cb5021c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/trace/events/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ TRACE_EVENT(sched_process_wait,
);

/*
* Tracepoint for do_fork:
* Tracepoint for kernel_clone:
*/
TRACE_EVENT(sched_process_fork,

Expand Down
2 changes: 1 addition & 1 deletion kernel/kthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static int kthread(void *_create)
do_exit(ret);
}

/* called from do_fork() to get node information for about to be created task */
/* called from kernel_clone() to get node information for about to be created task */
int tsk_fork_get_node(struct task_struct *tsk)
{
#ifdef CONFIG_NUMA
Expand Down

0 comments on commit cb5021c

Please sign in to comment.