summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-15 17:51:59 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-11 11:06:22 +0000
commit8c5bfee3922cb6f3625cea28870bb02ca6d50483 (patch)
treeecbda84bea776698ef73132555ba8e3c99ced6f7 /bitbake
parentfb65235aca994d6e802351e609f6f6c0ecc22a29 (diff)
downloadpoky-8c5bfee3922cb6f3625cea28870bb02ca6d50483.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: 53a3cba93401c902d1d214cafe0bc036e1b101e5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d446fa89d206fbc6d098215163c968ea5a8cf4a9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py3
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