]> git.baikalelectronics.ru Git - kernel.git/commit
sched/rt: Avoid obvious configuration fail
authorPeter Zijlstra <peterz@infradead.org>
Mon, 9 Feb 2015 11:23:20 +0000 (12:23 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 18 Feb 2015 15:17:23 +0000 (16:17 +0100)
commiteab2ec8b9ddf0f969f9827936f9415e767b38bd5
tree3e124314e5694fdd6a4b611a054ffe5112a92934
parent8dc1a9714836fa87c23c48fd42d38c6a21242cbf
sched/rt: Avoid obvious configuration fail

Setting the root group's cpu.rt_runtime_us to 0 is a bad thing; it
would disallow the kernel creating RT tasks.

One can of course still set it to 1, which will (likely) still wreck
your kernel, but at least make it clear that setting it to 0 is not
good.

Collect both sanity checks into the one place while we're there.

Suggested-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20150209112715.GO24151@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c