]> err.no Git - linux-2.6/blobdiff - include/linux/sched.h
[PATCH] i386: Remove const case for rwlocks
[linux-2.6] / include / linux / sched.h
index 6afa72e080cb7665bc4be600db1b4fe382460ccd..34ed0d99b1bd1ccde1dee28a164bfded8fb1fc37 100644 (file)
@@ -994,7 +994,6 @@ struct task_struct {
         */
        struct pipe_inode_info *splice_pipe;
 #ifdef CONFIG_TASK_DELAY_ACCT
-       spinlock_t delays_lock;
        struct task_delay_info *delays;
 #endif
 };
@@ -1557,6 +1556,14 @@ static inline void freeze(struct task_struct *p)
        p->flags |= PF_FREEZE;
 }
 
+/*
+ * Sometimes we may need to cancel the previous 'freeze' request
+ */
+static inline void do_not_freeze(struct task_struct *p)
+{
+       p->flags &= ~PF_FREEZE;
+}
+
 /*
  * Wake up a frozen process
  */