summaryrefslogtreecommitdiffstats
path: root/kernel/sys_ni.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2008-08-19 12:33:06 +0200
committerIngo Molnar <mingo@elte.hu>2008-08-19 13:10:12 +0200
commit9a7e0b180da21885988d47558671cf580279f9d6 (patch)
treeab1e69b08eb393a91f7bcfa1cc97170d81f36814 /kernel/sys_ni.c
parenteb755805f21bd5ded84026e167b7a90887ac42e5 (diff)
downloadlinux-stable-9a7e0b180da21885988d47558671cf580279f9d6.tar.gz
linux-stable-9a7e0b180da21885988d47558671cf580279f9d6.tar.bz2
linux-stable-9a7e0b180da21885988d47558671cf580279f9d6.zip
sched: rt-bandwidth fixes
The last patch allows sysctl_sched_rt_runtime to disable bandwidth accounting for the group scheduler - however it doesn't deal with sched_setscheduler(), which will keep tasks out of groups that have no assigned runtime. If we relax this, we get into the situation where RT tasks can get into a group when we disable bandwidth control, and then starve them by enabling it again. Rework the schedulability code to check for this condition and fail to turn on bandwidth control with -EBUSY when this situation is found. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sys_ni.c')
0 files changed, 0 insertions, 0 deletions