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 14:09:49 +0000 |
commit | d446fa89d206fbc6d098215163c968ea5a8cf4a9 (patch) | |
tree | 240ff729453d228025d266d7cecd2083e73ddb87 | |
parent | 2cfeb9998a8ad5b1dcda0bb4e192c5e4306dab17 (diff) | |
download | bitbake-contrib-d446fa89d206fbc6d098215163c968ea5a8cf4a9.tar.gz |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/runqueue.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index b90ac875e..729439ef3 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1959,7 +1959,8 @@ class RunQueueExecute: """ self.rq.read_workers() - self.process_possible_migrations() + if self.updated_taskhash_queue or self.pending_migrations: + self.process_possible_migrations() if not hasattr(self, "sorted_setscene_tids"): # Don't want to sort this set every execution |