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)
commit521f1a2489c41f8b1181b0a8eb52e1c34284d50b
treecfe339df98dcb65aaae6c45021ac92cdf60c6540
parent2692a2406b9262bbb101708815be99ec2988e48b
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