* [PATCH] kthread: remove comments about old _do_fork() helper
@ 2021-01-11 10:48 yanfei.xu
2021-01-11 11:24 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: yanfei.xu @ 2021-01-11 10:48 UTC (permalink / raw)
To: christian; +Cc: linux-kernel
From: Yanfei Xu <yanfei.xu@windriver.com>
The old _do_fork() helper has been removed in favor of kernel_clone().
Here correct some comments which still contain _do_fork()
Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
---
include/trace/events/sched.h | 2 +-
kernel/kthread.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h
index 5039af667645..cbe3e152d24c 100644
--- a/include/trace/events/sched.h
+++ b/include/trace/events/sched.h
@@ -366,7 +366,7 @@ TRACE_EVENT(sched_process_wait,
);
/*
- * Tracepoint for do_fork:
+ * Tracepoint for kernel_clone:
*/
TRACE_EVENT(sched_process_fork,
diff --git a/kernel/kthread.c b/kernel/kthread.c
index a5eceecd4513..fb9c3dcbb68d 100644
--- a/kernel/kthread.c
+++ b/kernel/kthread.c
@@ -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
--
2.18.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kthread: remove comments about old _do_fork() helper
2021-01-11 10:48 [PATCH] kthread: remove comments about old _do_fork() helper yanfei.xu
@ 2021-01-11 11:24 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2021-01-11 11:24 UTC (permalink / raw)
To: yanfei.xu; +Cc: linux-kernel
On Mon, Jan 11, 2021 at 06:48:07PM +0800, yanfei.xu@windriver.com wrote:
> From: Yanfei Xu <yanfei.xu@windriver.com>
>
> The old _do_fork() helper has been removed in favor of kernel_clone().
> Here correct some comments which still contain _do_fork()
>
> Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
> ---
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Thanks, applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-11 11:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 10:48 [PATCH] kthread: remove comments about old _do_fork() helper yanfei.xu
2021-01-11 11:24 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).