]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/sched.h
Merge branch 'linus' into sched/core
[net-next-2.6.git] / include / linux / sched.h
index 16a982e389fb289560d13039bfb608fd82bbdae2..9bada20e2b235ec8f4b3adce9a37d129c62a2e12 100644 (file)
@@ -38,6 +38,8 @@
 #define SCHED_BATCH            3
 /* SCHED_ISO: reserved but not implemented yet */
 #define SCHED_IDLE             5
+/* Can be ORed in to make sure the process is reverted back to SCHED_NORMAL on fork */
+#define SCHED_RESET_ON_FORK     0x40000000
 
 #ifdef __KERNEL__
 
@@ -1229,6 +1231,10 @@ struct task_struct {
        unsigned did_exec:1;
        unsigned in_execve:1;   /* Tell the LSMs that the process is doing an
                                 * execve */
+
+       /* Revert to default priority/policy when forking */
+       unsigned sched_reset_on_fork:1;
+
        pid_t pid;
        pid_t tgid;