aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2014-01-15 17:05:04 +0100
committerAlex Shi <alex.shi@linaro.org>2014-11-24 16:25:46 +0800
commitb62aed371b9e4fff23032e3c4b53ae44f747415a (patch)
tree3ef499d8e1b980c41dab72296961a7fa90dc0a65 /include
parent0525ffc8de736726591d6a8f6cb1a103346ed5a7 (diff)
sched: Move SCHED_RESET_ON_FORK into attr::sched_flags
I noticed the new sched_{set,get}attr() calls didn't properly deal with the SCHED_RESET_ON_FORK hack. Instead of propagating the flags in high bits nonsense use the brand spanking new attr::sched_flags field. Signed-off-by: Peter Zijlstra <peterz@infradead.org> Cc: Juri Lelli <juri.lelli@gmail.com> Cc: Dario Faggioli <raistlin@linux.it> Link: http://lkml.kernel.org/r/20140115162242.GJ31570@twins.programming.kicks-ass.net Signed-off-by: Ingo Molnar <mingo@kernel.org> (cherry picked from commit 7479f3c9cf67edf5e8a76b21ea3726757f35cf53) Signed-off-by: Alex Shi <alex.shi@linaro.org> Conflicts: include/uapi/linux/sched.h kernel/sched/core.c
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/sched.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/sched.h b/include/uapi/linux/sched.h
index 5a0f945927a..4e0773c3c43 100644
--- a/include/uapi/linux/sched.h
+++ b/include/uapi/linux/sched.h
@@ -42,5 +42,9 @@
/* Can be ORed in to make sure the process is reverted back to SCHED_NORMAL on fork */
#define SCHED_RESET_ON_FORK 0x40000000
+/*
+ * For the sched_{set,get}attr() calls
+ */
+#define SCHED_FLAG_RESET_ON_FORK 0x01
#endif /* _UAPI_LINUX_SCHED_H */