sched: unthrottle rt runqueues in __disable_runtime()
authorPeter Boonstoppel <pboonstoppel@nvidia.com>
Thu, 17 May 2012 22:15:43 +0000 (15:15 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 16 Jul 2012 12:26:12 +0000 (17:26 +0530)
commit5e154154f3e2e25d0e7af1ae6de5e2ed152298f9
tree348de06c8eea4b28fcc6dcdc75df2219b6e4014b
parent68b24029bc7551d5ed20e94f1858424018336d94
sched: unthrottle rt runqueues in __disable_runtime()

migrate_tasks() uses _pick_next_task_rt() to get tasks from the
real-time runqueues to be migrated. When rt_rq is throttled
_pick_next_task_rt() won't return anything, in which case
migrate_tasks() can't move all threads over and gets stuck in an
infinite loop.

Instead unthrottle rt runqueues before migrating tasks.

Bug 976709

Change-Id: Ie3696702abc560fe8ffa7d2fb5dc5d54d532cc0d
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
(cherry picked from commit 4d18ba5765c206bf9f37634f532d97dabd507a58)
Reviewed-on: http://git-master/r/103417
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
kernel/sched/rt.c