sched: Fix task_hot() test order
authorPeter Zijlstra <[email protected]>
Wed, 16 Dec 2009 17:04:33 +0000 (18:04 +0100)
committerIngo Molnar <[email protected]>
Wed, 16 Dec 2009 18:01:54 +0000 (19:01 +0100)
commite6c8fba7771563b2f3dfb96a78f36ec17e15bdf0
tree232d6ea7b028d3a98ea5eaa9ceffb21aff19db35
parent9ee349ad6d326df3633d43f54202427295999c47
sched: Fix task_hot() test order

Make sure not to access sched_fair fields before verifying it is
indeed a sched_fair task.

Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Mike Galbraith <[email protected]>
CC: [email protected]
LKML-Reference: <20091216170517.577998058@chello.nl>
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched.c