diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 4896fdfec913..d4a2c6662f7d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -38,6 +38,8 @@ | |||
38 | #define SCHED_BATCH 3 | 38 | #define SCHED_BATCH 3 |
39 | /* SCHED_ISO: reserved but not implemented yet */ | 39 | /* SCHED_ISO: reserved but not implemented yet */ |
40 | #define SCHED_IDLE 5 | 40 | #define SCHED_IDLE 5 |
41 | /* Can be ORed in to make sure the process is reverted back to SCHED_NORMAL on fork */ | ||
42 | #define SCHED_RESET_ON_FORK 0x40000000 | ||
41 | 43 | ||
42 | #ifdef __KERNEL__ | 44 | #ifdef __KERNEL__ |
43 | 45 | ||
@@ -1209,6 +1211,10 @@ struct task_struct { | |||
1209 | unsigned did_exec:1; | 1211 | unsigned did_exec:1; |
1210 | unsigned in_execve:1; /* Tell the LSMs that the process is doing an | 1212 | unsigned in_execve:1; /* Tell the LSMs that the process is doing an |
1211 | * execve */ | 1213 | * execve */ |
1214 | |||
1215 | /* Revert to default priority/policy when forking */ | ||
1216 | unsigned sched_reset_on_fork:1; | ||
1217 | |||
1212 | pid_t pid; | 1218 | pid_t pid; |
1213 | pid_t tgid; | 1219 | pid_t tgid; |
1214 | 1220 | ||