]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - include/linux/sched.h
New upstream release
[bcachefs-tools-debian] / include / linux / sched.h
index ac6d27bb6b3bb3079c399330d7ec965408482676..c5c8e3ac10ee7fe64daab7359e85898810ccd25d 100644 (file)
@@ -28,6 +28,7 @@
 #define TASK_NEW               2048
 #define TASK_IDLE_WORKER       4096
 #define TASK_STATE_MAX         8192
+#define TASK_FREEZABLE         (1U << 14)
 
 /* Convenience macros for the sake of set_task_state */
 #define TASK_KILLABLE          (TASK_WAKEKILL | TASK_UNINTERRUPTIBLE)
@@ -116,7 +117,7 @@ static inline void put_task_struct(struct task_struct *t)
                __put_task_struct(t);
 }
 
-#define cond_resched()
+static inline void cond_resched(void) {}
 #define need_resched() 0
 
 void schedule(void);