]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/kmod.h
PM: Print a warning if firmware is requested when tasks are frozen
[karo-tx-linux.git] / include / linux / kmod.h
index 384ca8bbf1ac26210ed6d217d8651b86d9b5e4e0..5a048bdcc1d2772dad513a6d2269d569cf5b8959 100644 (file)
@@ -104,7 +104,12 @@ struct file;
 extern int call_usermodehelper_pipe(char *path, char *argv[], char *envp[],
                                    struct file **filp);
 
+#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__ */