Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245346
b: refs/heads/master
c: 13d53f8
h: refs/heads/master
v: v3
  • Loading branch information
Kay Sievers authored and Rafael J. Wysocki committed May 17, 2011
1 parent 463f893 commit b2182d0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 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: c3b0795c98c08351567464150db66d11e05d7611
refs/heads/master: 13d53f8775c6a00b070a3eef6833795412eb7fcd
4 changes: 0 additions & 4 deletions trunk/include/linux/kmod.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,8 @@ call_usermodehelper(char *path, char **argv, char **envp, enum umh_wait wait)

extern void usermodehelper_init(void);

#ifdef CONFIG_PM_SLEEP
extern int usermodehelper_disable(void);
extern void usermodehelper_enable(void);
extern bool usermodehelper_is_disabled(void);
#else
static inline bool usermodehelper_is_disabled(void) { return false; }
#endif

#endif /* __LINUX_KMOD_H__ */
7 changes: 0 additions & 7 deletions trunk/kernel/kmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ static void __call_usermodehelper(struct work_struct *work)
}
}

#ifdef CONFIG_PM_SLEEP
/*
* If set, call_usermodehelper_exec() will exit immediately returning -EBUSY
* (used for preventing user land processes from being created after the user
Expand Down Expand Up @@ -321,12 +320,6 @@ static void helper_unlock(void)
if (atomic_dec_and_test(&running_helpers))
wake_up(&running_helpers_waitq);
}
#else /* CONFIG_PM_SLEEP */
#define usermodehelper_disabled 0

static inline void helper_lock(void) {}
static inline void helper_unlock(void) {}
#endif /* CONFIG_PM_SLEEP */

/**
* call_usermodehelper_setup - prepare to call a usermode helper
Expand Down

0 comments on commit b2182d0

Please sign in to comment.