mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user