Commit b408eca5 authored by Victor Lopez's avatar Victor Lopez

Check if CPU has been reclaimed when polling

parent e5343f02
......@@ -430,6 +430,9 @@ void ThreadManager::waitForCpuAvailability()
/* CPU is not yet available */
OS::nanosleep( ThreadManagerConf::DEFAULT_SLEEP_NS );
sched_yield();
} else if ( dlb_err == DLB_NOUPDT ) {
/* CPU is not reclaimed, ask again */
DLB_AcquireCpu( my_cpu );
}
}
#endif
......
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