Commit 5729bbc9 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by bliss administrator

GlobalCPUAffinityMgr: skip processing if Lima has enough CPUs to run

parent 6a6b3573
Pipeline #28383 failed with stages
in 2 minutes and 34 seconds
......@@ -1637,8 +1637,18 @@ void GlobalCPUAffinityMgr::recvFinished()
DEB_MEMBER_FUNCT();
AutoMutex l = lock();
if (!m_proc_finished)
if (!m_proc_finished) {
m_state = Ready;
} else {
PoolThreadMgr& pool_thread_mgr = PoolThreadMgr::get();
int nb_threads = pool_thread_mgr.getNumberOfThread();
int nb_cpus = m_curr.lima.getNbCPUs();
DEB_TRACE() << DEB_VAR2(nb_threads, nb_cpus);
if (nb_threads == nb_cpus) {
DEB_ALWAYS() << "Skipping processing";
m_state = Ready;
}
}
if (m_state == Ready)
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment