summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-15 17:44:35 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-16 23:25:49 +0000
commitba4dbacedd635d2467da1d6038874f4a05f5d2d0 (patch)
tree0a7a943740f11731d386fb04bc8593e2e4b5df67 /meta
parent093f6924741c61e77ffc99d717b2096357dce691 (diff)
downloadpoky-ba4dbacedd635d2467da1d6038874f4a05f5d2d0.tar.gz
sstatesig: Further optimise
Optimise the call into the parent function to be only when needed. (From OE-Core rev: 198bacaa1068fd68075d9182318fe64e9809dd36) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/sstatesig.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 8d009bfdc6..7cecb59d8e 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -141,14 +141,13 @@ class SignatureGeneratorOEBasicHashMixIn(object):
141 return super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigs(dataCache, options) 141 return super(bb.siggen.SignatureGeneratorBasicHash, self).dump_sigs(dataCache, options)
142 142
143 def get_taskhash(self, tid, deps, dataCache): 143 def get_taskhash(self, tid, deps, dataCache):
144 h = super(bb.siggen.SignatureGeneratorBasicHash, self).get_taskhash(tid, deps, dataCache)
145 if tid in self.lockedhashes: 144 if tid in self.lockedhashes:
146 if self.lockedhashes[tid]: 145 if self.lockedhashes[tid]:
147 return self.lockedhashes[tid] 146 return self.lockedhashes[tid]
148 else: 147 else:
149 return h 148 return super().get_taskhash(tid, deps, dataCache)
150 149
151 h = super(bb.siggen.SignatureGeneratorBasicHash, self).get_taskhash(tid, deps, dataCache) 150 h = super().get_taskhash(tid, deps, dataCache)
152 151
153 (mc, _, task, fn) = bb.runqueue.split_tid_mcfn(tid) 152 (mc, _, task, fn) = bb.runqueue.split_tid_mcfn(tid)
154 153