sched: HMP fix traversing the rb-tree from the curr pointer
authorMorten Rasmussen <morten.rasmussen@arm.com>
Mon, 19 Aug 2013 14:06:16 +0000 (15:06 +0100)
committerJon Medhurst <tixy@linaro.org>
Mon, 19 Aug 2013 14:41:36 +0000 (15:41 +0100)
commitaaba2453951b3743d003be228102e1da63c75326
treef37f355b6d763bd980be42a78d84b6b5a76d02c3
parentee52487aaf659ef630ce3371de0e59944253581b
sched: HMP fix traversing the rb-tree from the curr pointer

The hmp_get_{lightest,heaviest}_task() need to use
__pick_first_entity() to get a pointer to a sched_entity on the rq.
The current is not kept on the rq while running, so its rb-tree node
pointers are no longer valid.

Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
kernel/sched/fair.c