|
@@ -49,6 +49,7 @@ extern int thaw_process(struct task_struct *p);
|
|
|
|
|
|
extern void refrigerator(void);
|
|
|
extern int freeze_processes(void);
|
|
|
+extern int freeze_kernel_threads(void);
|
|
|
extern void thaw_processes(void);
|
|
|
|
|
|
static inline int try_to_freeze(void)
|
|
@@ -171,7 +172,8 @@ static inline void clear_freeze_flag(struct task_struct *p) {}
|
|
|
static inline int thaw_process(struct task_struct *p) { return 1; }
|
|
|
|
|
|
static inline void refrigerator(void) {}
|
|
|
-static inline int freeze_processes(void) { BUG(); return 0; }
|
|
|
+static inline int freeze_processes(void) { return -ENOSYS; }
|
|
|
+static inline int freeze_kernel_threads(void) { return -ENOSYS; }
|
|
|
static inline void thaw_processes(void) {}
|
|
|
|
|
|
static inline int try_to_freeze(void) { return 0; }
|