mirror of
git://git.yoctoproject.org/poky
synced 2026-08-13 08:56:05 +00:00
bitbake: runqueue: Fix handling of zero priority task
The zero priority task should be run first but was being confused with the None value the priority field defaulted to. Check for None explicitly to avoid this error. In the real world this doesn't change much but it confused the debug output from the schedulers. (Bitbake rev: 49c9d8c9400f74c804c2f36462639236e0841ff0) (Bitbake rev: 5c3b0c139143ffd68033afa93421164f89703426) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
aa39d9a2df
commit
00d8024741
@ -139,7 +139,7 @@ class RunQueueScheduler(object):
|
||||
bestprio = None
|
||||
for taskid in self.buildable:
|
||||
prio = self.rev_prio_map[taskid]
|
||||
if not bestprio or bestprio > prio:
|
||||
if bestprio is None or bestprio > prio:
|
||||
stamp = self.stamps[taskid]
|
||||
if stamp in self.rq.build_stamps.itervalues():
|
||||
continue
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user