Skip to content

Commit cb5021c

Browse files
Yanfei XuChristian Brauner
authored andcommitted
kthread: remove comments about old _do_fork() helper
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>
1 parent 96e1e98 commit cb5021c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/trace/events/sched.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ TRACE_EVENT(sched_process_wait,
366366
);
367367

368368
/*
369-
* Tracepoint for do_fork:
369+
* Tracepoint for kernel_clone:
370370
*/
371371
TRACE_EVENT(sched_process_fork,
372372

kernel/kthread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static int kthread(void *_create)
294294
do_exit(ret);
295295
}
296296

297-
/* called from do_fork() to get node information for about to be created task */
297+
/* called from kernel_clone() to get node information for about to be created task */
298298
int tsk_fork_get_node(struct task_struct *tsk)
299299
{
300300
#ifdef CONFIG_NUMA

0 commit comments

Comments
 (0)