summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 13f4271da0..468c76f30f 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -249,8 +249,7 @@ def trim_version(version, num_parts=2):
249 return trimmed 249 return trimmed
250 250
251def cpu_count(at_least=1): 251def cpu_count(at_least=1):
252 import multiprocessing 252 cpus = len(os.sched_getaffinity(0))
253 cpus = multiprocessing.cpu_count()
254 return max(cpus, at_least) 253 return max(cpus, at_least)
255 254
256def execute_pre_post_process(d, cmds): 255def execute_pre_post_process(d, cmds):