Skip to content
Commit 708dc512 authored by Luis Henriques's avatar Luis Henriques Committed by Ingo Molnar
Browse files

sched: small optimisation of can_migrate_task()



There were 3 invocations of task_hot() in can_migrate_task().

Replace these 3 invocations by only one invocation, cached in
a local variable.

Signed-off-by: default avatarLuis Henriques <henrix@sapo.pt>
LKML-Reference: <20090316195902.GA6197@hades.domain.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 80dd99b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment