Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262386
b: refs/heads/master
c: 288d5ab
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Aug 4, 2011
1 parent 55213a0 commit 9422351
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: 33f35f2a4ee3abfc0f87990058aa1b6b5092f725
refs/heads/master: 288d5abec8314ae50fe6692f324b0444acae8486
5 changes: 4 additions & 1 deletion trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,12 @@ static noinline void __init_refok rest_init(void)
init_idle_bootup_task(current);
preempt_enable_no_resched();
schedule();
preempt_disable();

/* At this point, we can enable user mode helper functionality */
usermodehelper_enable();

/* Call into cpu_idle with preempt disabled */
preempt_disable();
cpu_idle();
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/kmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ static void __call_usermodehelper(struct work_struct *work)
* (used for preventing user land processes from being created after the user
* land has been frozen during a system-wide hibernation or suspend operation).
*/
static int usermodehelper_disabled;
static int usermodehelper_disabled = 1;

/* Number of helpers running */
static atomic_t running_helpers = ATOMIC_INIT(0);
Expand Down

0 comments on commit 9422351

Please sign in to comment.