msm: buspm: Correct size type in buspm_xfer_req

Variable size inside buspm_xfer_req
can be negative and thus would be a
large positive number resulting in arbitary
Kernel read. This patch corrects this value.

CRs-Fixed: 563529
Change-Id: I877db6960530d6c7d1486da9cfdc15a43e57e152
Signed-off-by: Sana Venkat Raju <c_vsana@codeaurora.org>
sched,cgroup: Fix up task_groups list

With multiple instances of task_groups, for_each_rt_rq() is a noop,
no task groups having been added to the rt.c list instance.  This
renders __enable/disable_runtime() and print_rt_stats() noop, the
user (non) visible effect being that rt task groups are missing in
/proc/sched_debug.

Change-Id: Ib337ebda0e752f838d787c03fe1b0a8f03ea0551
Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: stable@kernel.org # v3.3+
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1344308413.6846.7.camel@marge.simpson.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Git-commit: 35cf4e50b16331def6cfcbee11e49270b6db07f5
Git-repo: git://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
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.

Additionally: move unthrottle_offline_cfs_rqs() to rq_offline_fair()

Change-Id: If8a4a399f1a14b7f4789c1b205dcfadbde555214
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Turner <pjt@google.com>
Link: http://lkml.kernel.org/r/5FBF8E85CA34454794F0F7ECBA79798F379D3648B7@HQMAIL04.nvidia.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Git-commit: a4c96ae319b8047f62dedbe1eac79e321c185749
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Merge "sched,cgroup: Fix up task_groups list"
Merge "sched: Unthrottle rt runqueues in __disable_runtime()"
Merge "Merge "sched: Unthrottle rt runqueues in __disable_runtime()""
Merge "Merge "Merge "sched: Unthrottle rt runqueues in __disable_runtime()"""
Merge "Merge "sched: Unthrottle rt runqueues in __disable_runtime()""
Merge "Merge "Merge "sched: Unthrottle rt runqueues in __disable_runtime()"""
Merge "msm: buspm: Correct size type in buspm_xfer_req"
Merge "Merge "sched: Unthrottle rt runqueues in __disable_runtime()""
Merge "Merge "Merge "sched: Unthrottle rt runqueues in __disable_runtime()"""
Merge "Merge "msm: buspm: Correct size type in buspm_xfer_req""
Merge "Merge "Merge "msm: buspm: Correct size type in buspm_xfer_req"""
Merge "Merge "msm: buspm: Correct size type in buspm_xfer_req""
Merge "Merge "Merge "msm: buspm: Correct size type in buspm_xfer_req"""
Merge "Merge "msm: buspm: Correct size type in buspm_xfer_req""
Merge "Merge "Merge "msm: buspm: Correct size type in buspm_xfer_req"""
Merge "Merge "msm: buspm: Correct size type in buspm_xfer_req""
Merge "Merge "Merge "msm: buspm: Correct size type in buspm_xfer_req"""