Performance improvement: Idle loop should not take MM semaphore if there is not garbage to be collected. This can cause loss of performance and thrashing in tasking

This commit is contained in:
Gregory Nutt
2016-02-16 19:33:22 -06:00
parent 6dfa72d038
commit 6aeb4a52e8
6 changed files with 103 additions and 13 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ static int work_hpthread(int argc, char *argv[])
* thread instead.
*/
sched_garbagecollection();
sched_garbage_collection();
#endif
/* Then process queued work. work_process will not return until: (1)
+1 -1
View File
@@ -156,7 +156,7 @@ static int work_lpthread(int argc, char *argv[])
* the garbage collection.
*/
sched_garbagecollection();
sched_garbage_collection();
/* Then process queued work. work_process will not return until:
* (1) there is no further work in the work queue, and (2) the polling