sched: HMP fix traversing the rb-tree from the curr pointer
authorMorten Rasmussen <morten.rasmussen@arm.com>
Tue, 6 Aug 2013 15:14:19 +0000 (16:14 +0100)
committerJon Medhurst <tixy@linaro.org>
Thu, 5 Sep 2013 17:09:16 +0000 (18:09 +0100)
commitc05cd3079d0dd31ee5391a2a5c036fdecc67a136
treef8ea63bee82dd07a2bae7b6f64af51c26a35bdac
parent83a3cdb6d37f700761be84a333d574709c5a0d2a
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