aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-13 11:45:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-21 23:05:55 +0100
commit12dc1d17fac3e8ec420fcafb06186d32fd847d89 (patch)
tree4cf5d8dffd24cd43e48dc9f5cc6292e742df3c5e
parent49c9d8c9400f74c804c2f36462639236e0841ff0 (diff)
downloadbitbake-12dc1d17fac3e8ec420fcafb06186d32fd847d89.tar.gz
runqueue: Fix task weighting algorithm
When looking at a list of tasks, do_patch and do_unpack were being given equal priority when one clearly depends on another. The reason for this was the default task weights of 0 being to tasks. This is therefore changed to 1 to allow correct weighting of dependencies which means the scheduler has better information available to it about tasks. Weight endpoints differently (10) for clearer debugging of priorities. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/runqueue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 274ccf267..6ca693d21 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -370,11 +370,11 @@ class RunQueueData:
for listid in xrange(numTasks):
task_done.append(False)
- weight.append(0)
+ weight.append(1)
deps_left.append(len(self.runq_revdeps[listid]))
for listid in endpoints:
- weight[listid] = 1
+ weight[listid] = 10
task_done[listid] = True
while True: