aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_pci.c
diff options
context:
space:
mode:
authorStephan Baerwolf <[email protected]>2011-07-20 12:46:59 +0000
committerIngo Molnar <[email protected]>2011-07-21 16:01:55 +0000
commit2bd2d6f2dc952fc44fc52887de36e51896da96b9 (patch)
tree0b08e0ae13cad776cb216a4b85b1eb8d6eda6611 /drivers/gpu/drm/drm_pci.c
parentsched: Separate group-scheduling code more clearly (diff)
downloadkernel-2bd2d6f2dc952fc44fc52887de36e51896da96b9.tar.gz
kernel-2bd2d6f2dc952fc44fc52887de36e51896da96b9.zip
sched: Replace use of entity_key()
"entity_key()" is only used in "__enqueue_entity()" and its only function is to subtract a tasks vruntime by its groups minvruntime. Before this patch a rbtree enqueue-decision is done by comparing two tasks in the style: "if (entity_key(cfs_rq, se) < entity_key(cfs_rq, entry))" which would be "if (se->vruntime-cfs_rq->min_vruntime < entry->vruntime-cfs_rq->min_vruntime)" or (if reducing cfs_rq->min_vruntime out) "if (se->vruntime < entry->vruntime)" which is "if (entity_before(se, entry))" So we do not need "entity_key()". If "entity_before()" is inline we will also save one subtraction (only one, because "entity_key(cfs_rq, se)" was cached in "key") Signed-off-by: Stephan Baerwolf <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
0 files changed, 0 insertions, 0 deletions