]> git.baikalelectronics.ru Git - kernel.git/commit
sched: don't allow rt_runtime_us to be zero for groups having rt tasks
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Thu, 28 Feb 2008 09:51:56 +0000 (15:21 +0530)
committerIngo Molnar <mingo@elte.hu>
Fri, 7 Mar 2008 15:43:00 +0000 (16:43 +0100)
commite44818a0392b53c9699f52cb364baf85376d570d
treecfe339df98dcb65aaae6c45021ac92cdf60c6540
parentef56ec0545ebccd76ed046ca5cac05679d441546
sched: don't allow rt_runtime_us to be zero for groups having rt tasks

This patch checks if we can set the rt_runtime_us to 0. If there is a
realtime task in the group, we don't want to set the rt_runtime_us as 0
or bad things will happen. (that task wont get any CPU time despite
being TASK_RUNNNG)

Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c