bitbake: runqueue: Fix handling of zero priority task
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 13 Apr 2014 10:44:25 +0000 (11:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Apr 2014 10:43:29 +0000 (11:43 +0100)
commitadbe304a8bab234fcf1158ad522b6924f9a9c885
tree125d08da06f24a52d31ff5cb3ee0529539164643
parent6f9c4bdf3b80cf116997d437c510b26043a0ebc3
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)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/runqueue.py