summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-07-22 11:40:15 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-25 12:54:15 +0100
commitbb5c7d5b94705ea47559bd00540bcbd3bd89a9c0 (patch)
treeab5f5a108e1f707e41d0036e4329e76a34ebb0dd
parent9cf5190679f372da212cbbbf85e27b9ea6a395f4 (diff)
downloadpoky-bb5c7d5b94705ea47559bd00540bcbd3bd89a9c0.tar.gz
ui/crumbs/hobprefs: set higher arbitrary limit on threads & parallelism
We don't have a good handle on a sane cap value so just set it to an arbitrary, but reasonably high, number. Once we have some more numbers on values for number of threads and make parallelism we can integrate the algorithm into the GUI. Addresses [YOCTO #1266] (Bitbake rev: 31274e78eab502f5eb9f6079897644b535d31dd1) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobprefs.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobprefs.py b/bitbake/lib/bb/ui/crumbs/hobprefs.py
index 779c14a63f..e01a2662fc 100644
--- a/bitbake/lib/bb/ui/crumbs/hobprefs.py
+++ b/bitbake/lib/bb/ui/crumbs/hobprefs.py
@@ -243,7 +243,12 @@ class HobPrefs(gtk.Dialog):
243 pbox.pack_start(hbox, expand=False, fill=False, padding=6) 243 pbox.pack_start(hbox, expand=False, fill=False, padding=6)
244 label = gtk.Label("BitBake threads:") 244 label = gtk.Label("BitBake threads:")
245 label.show() 245 label.show()
246 spin_max = 9 #self.cpu_cnt * 3 246 # NOTE: may be a good idea in future to intelligently cap the maximum
247 # values but we need more data to make an educated decision, for now
248 # set a high maximum as a value for upper bounds is required by the
249 # gtk.Adjustment
250 spin_max = 30 # seems like a high enough arbitrary number
251 #spin_max = self.cpu_cnt * 3
247 hbox.pack_start(label, expand=False, fill=False, padding=6) 252 hbox.pack_start(label, expand=False, fill=False, padding=6)
248 bbadj = gtk.Adjustment(value=self.bbthread, lower=1, upper=spin_max, step_incr=1) 253 bbadj = gtk.Adjustment(value=self.bbthread, lower=1, upper=spin_max, step_incr=1)
249 bbspinner = gtk.SpinButton(adjustment=bbadj, climb_rate=1, digits=0) 254 bbspinner = gtk.SpinButton(adjustment=bbadj, climb_rate=1, digits=0)