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)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 12 May 2014 11:02:21 +0000 (12:02 +0100)
commitb8576a356f272a9267b5e7a12916a5e2ea025c34
tree362812c242d8f8d529632c63b0c14d8b02dc19a6
parent69a485475276c181c5431650d360c9b10c911dde
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