All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/26] runqueue: Tweak buildable variable handling in scheduler
@ 2019-07-10 23:53 Richard Purdie
  2019-07-10 23:53 ` [PATCH 02/26] runqueue: Drop unused BB_SETSCENE_VERIFY_FUNCTION2 Richard Purdie
                   ` (25 more replies)
  0 siblings, 26 replies; 31+ messages in thread
From: Richard Purdie @ 2019-07-10 23:53 UTC (permalink / raw)
  To: bitbake-devel

Work off a copy of the 'buildable' class variable, allowing easier
future code changes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/runqueue.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 704e309b93..b19b524e77 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -142,7 +142,8 @@ class RunQueueScheduler(object):
         Return the id of the first task we find that is buildable
         """
         self.buildable = [x for x in self.buildable if x not in self.rq.runq_running]
-        if not self.buildable:
+        buildable = self.buildable
+        if not buildable:
             return None
 
         # Filter out tasks that have a max number of threads that have been exceeded
@@ -158,8 +159,8 @@ class RunQueueScheduler(object):
             else:
                 skip_buildable[rtaskname] = 1
 
-        if len(self.buildable) == 1:
-            tid = self.buildable[0]
+        if len(buildable) == 1:
+            tid = buildable[0]
             taskname = taskname_from_tid(tid)
             if taskname in skip_buildable and skip_buildable[taskname] >= int(self.skip_maxthread[taskname]):
                 return None
@@ -174,7 +175,7 @@ class RunQueueScheduler(object):
 
         best = None
         bestprio = None
-        for tid in self.buildable:
+        for tid in buildable:
             taskname = taskname_from_tid(tid)
             if taskname in skip_buildable and skip_buildable[taskname] >= int(self.skip_maxthread[taskname]):
                 continue
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2019-07-12  8:13 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 23:53 [PATCH 01/26] runqueue: Tweak buildable variable handling in scheduler Richard Purdie
2019-07-10 23:53 ` [PATCH 02/26] runqueue: Drop unused BB_SETSCENE_VERIFY_FUNCTION2 Richard Purdie
2019-07-10 23:53 ` [PATCH 03/26] runqueue: Remove now uneeded code Richard Purdie
2019-07-10 23:53 ` [PATCH 04/26] runqueue: Move scenequeue data generation to a separate function Richard Purdie
2019-07-10 23:53 ` [PATCH 05/26] runqueue: Remove unused function parameter Richard Purdie
2019-07-10 23:54 ` [PATCH 06/26] runqueue: Factor out the process_setscene_whitelist checks Richard Purdie
2019-07-10 23:54 ` [PATCH 07/26] runqueue: Uniquely namespace the scenequeue functions Richard Purdie
2019-07-10 23:54 ` [PATCH 08/26] runqueue: Merge stats handling together for setscene/real tasks Richard Purdie
2019-07-10 23:54 ` [PATCH 09/26] runqueue: Merge scenequeue and real task queue code together Richard Purdie
2019-07-10 23:54 ` [PATCH 10/26] runqueue: Fix counter/task updating glitch Richard Purdie
2019-07-10 23:54 ` [PATCH 11/26] runqueue: Remove RunQueueExecuteScenequeue and RunQueueExecuteTasks Richard Purdie
2019-07-10 23:54 ` [PATCH 12/26] runqueue: Simplify _execute_runqueue logic Richard Purdie
2019-07-10 23:54 ` [PATCH 13/26] runqueue: Fold remains of the scenequeue setup into RunQueueExecute Richard Purdie
2019-07-10 23:54 ` [PATCH 14/26] event/runqueue: Drop StampUpdate event, its pointless/unused Richard Purdie
2019-07-10 23:54 ` [PATCH 15/26] runqueue: Add covered_tasks (or 'collated_deps') to scenequeue data Richard Purdie
2019-07-10 23:54 ` [PATCH 16/26] runqueue: Simplify scenequeue unskippable calculation Richard Purdie
2019-07-10 23:54 ` [PATCH 17/26] runqueue: Tweak comments and debug code Richard Purdie
2019-07-10 23:54 ` [PATCH 18/26] runqueue: Code simplification Richard Purdie
2019-07-10 23:54 ` [PATCH 19/26] runqueue: Remove pointless variable Richard Purdie
2019-07-10 23:54 ` [PATCH 20/26] runqueue: Further scheduler buildable tasks cleanup Richard Purdie
2019-07-10 23:54 ` [PATCH 21/26] runqueue: Clarify scenequeue_covered vs. tasks_covered Richard Purdie
2019-07-10 23:54 ` [PATCH 22/26] runqueue: Merge the queues and execute setscene and normal tasks in parallel Richard Purdie
2019-07-10 23:54 ` [PATCH 23/26] runqueue: Alter setscenewhitelist handling Richard Purdie
2019-07-10 23:54 ` [PATCH 24/26] runqueue: Complete the merge of scenequeue and normal task execution Richard Purdie
2019-07-10 23:54 ` [PATCH 25/26] siggen: Fix default handler Richard Purdie
2019-07-10 23:54 ` [PATCH 26/26] tests: Add initial scenario based test for runqueue Richard Purdie
2019-07-11  0:05 ` [PATCH 00/26] runqueue changes Richard Purdie
     [not found]   ` <63270c2a-f78a-65e1-16c0-8ce271d4dd8e@mikrodidakt.se>
2019-07-11 11:33     ` richard.purdie
2019-07-11 16:21   ` Richard Purdie
2019-07-12  0:57     ` Khem Raj
2019-07-12  8:13       ` richard.purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.