kthread: silence bogus section mismatch warning
Changes
1 files changed · +2 −10
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| kernel/kthread.c | modified | +2 | −10 | View file |
kernel/kthread.c
View filediff --git a/kernel/kthread.c b/kernel/kthread.c
index a404f7e..dcfe724 100644
--- a/kernel/kthread.c
+++ b/kernel/kthread.c
@@ -214,23 +214,15 @@ int kthread_stop(struct task_struct *k)
}
EXPORT_SYMBOL(kthread_stop);
-
-static noinline __init_refok void kthreadd_setup(void)
+int kthreadd(void *unused)
{
struct task_struct *tsk = current;
+ /* Setup a clean context for our children to inherit. */
set_task_comm(tsk, "kthreadd");
-
ignore_signals(tsk);
-
set_user_nice(tsk, -5);
set_cpus_allowed(tsk, CPU_MASK_ALL);
-}
-
-int kthreadd(void *unused)
-{
- /* Setup a clean context for our children to inherit. */
- kthreadd_setup();
current->flags |= PF_NOFREEZE;