Skip to contentSkip to conversation

kthread: remove comments about old _do_fork() helper

PATCH Applied [email protected] 2 participants 2 messages Jan 11, 2021 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kthread: remove comments about old _do_fork() helper

From: Yanfei Xu <[email protected]>

The old _do_fork() helper has been removed in favor of kernel_clone(). Here correct some comments which still contain _do_fork()

---
 include/trace/events/sched.h | 2 +-
 kernel/kthread.c             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/trace/events/sched.h +1 -1
index 5039af667645..cbe3e152d24c 100644
@@ -366,7 +366,7 @@ TRACE_EVENT(sched_process_wait,
 );
 
 /*
- * Tracepoint for do_fork:
+ * Tracepoint for kernel_clone:
  */
 TRACE_EVENT(sched_process_fork,
 
kernel/kthread.c +1 -1
index a5eceecd4513..fb9c3dcbb68d 100644
@@ -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
Signature · 1 line
2.18.2