Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63362
b: refs/heads/master
c: e804a4a
h: refs/heads/master
v: v3
  • Loading branch information
Satyam Sharma authored and Linus Torvalds committed Jul 31, 2007
1 parent ec6caf8 commit 8789293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bbe06f6bf7e764a9eb0e3cdcec2b12c743f35757
refs/heads/master: e804a4a4dd596d853f6d6f814fbdcf97b8efcdea
12 changes: 2 additions & 10 deletions trunk/kernel/kthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8789293

Please sign in to comment.