diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-15 17:51:59 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-16 23:27:14 +0000 |
commit | ec3897d9c052ad129e3291fc76b5e5613f30df8a (patch) | |
tree | ddadbacc7267a0ea94c421b20f788b7e3859519c | |
parent | f397a61f7c88b3574258deb20f737d8e4679f49b (diff) | |
download | poky-ec3897d9c052ad129e3291fc76b5e5613f30df8a.tar.gz |
bitbake: runqueue: Only call into the migrations function if migrations active
This doesn't save much time but does make the profile counts for the
function more accurate which is in itself useful.
(Bitbake rev: d446fa89d206fbc6d098215163c968ea5a8cf4a9)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index b90ac875e3..729439ef31 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1959,7 +1959,8 @@ class RunQueueExecute: | |||
1959 | """ | 1959 | """ |
1960 | 1960 | ||
1961 | self.rq.read_workers() | 1961 | self.rq.read_workers() |
1962 | self.process_possible_migrations() | 1962 | if self.updated_taskhash_queue or self.pending_migrations: |
1963 | self.process_possible_migrations() | ||
1963 | 1964 | ||
1964 | if not hasattr(self, "sorted_setscene_tids"): | 1965 | if not hasattr(self, "sorted_setscene_tids"): |
1965 | # Don't want to sort this set every execution | 1966 | # Don't want to sort this set every execution |