]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/freezer.h
Freezer: Introduce PF_FREEZER_NOSIG
[linux-2.6-omap-h63xx.git] / include / linux / freezer.h
index 08934995c7ab5463e5f4064f4e2fff5ccfb4af94..deddeedf32571f12015de116f729ae666f74ede4 100644 (file)
@@ -127,6 +127,15 @@ static inline void set_freezable(void)
        current->flags &= ~PF_NOFREEZE;
 }
 
+/*
+ * Tell the freezer that the current task should be frozen by it and that it
+ * should send a fake signal to the task to freeze it.
+ */
+static inline void set_freezable_with_signal(void)
+{
+       current->flags &= ~(PF_NOFREEZE | PF_FREEZER_NOSIG);
+}
+
 /*
  * Freezer-friendly wrappers around wait_event_interruptible() and
  * wait_event_interruptible_timeout(), originally defined in <linux/wait.h>
@@ -174,6 +183,7 @@ static inline void freezer_do_not_count(void) {}
 static inline void freezer_count(void) {}
 static inline int freezer_should_skip(struct task_struct *p) { return 0; }
 static inline void set_freezable(void) {}
+static inline void set_freezable_with_signal(void) {}
 
 #define wait_event_freezable(wq, condition)                            \
                wait_event_interruptible(wq, condition)