sched: Move SCHED_RESET_ON_FORK into attr::sched_flags
authorPeter Zijlstra <peterz@infradead.org>
Wed, 15 Jan 2014 16:05:04 +0000 (17:05 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 16 Jan 2014 08:27:17 +0000 (09:27 +0100)
commit7479f3c9cf67edf5e8a76b21ea3726757f35cf53
tree25dfe80eb86cdfbd73008e143b9ae9f68d44a96e
parent0bb040a44381261c0729636abbe03caeedb7d72e
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>
include/uapi/linux/sched.h
kernel/sched/core.c