|
@@ -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
|
|
@@ -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
|