More optimizations.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14532 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-06-12 06:05:34 +00:00
parent f093064acb
commit c9e9f3cc21
4 changed files with 9 additions and 9 deletions

View File

@ -1,11 +1,11 @@
*** ChibiOS/RT Test Suite *** ChibiOS/RT Test Suite
*** ***
*** Compiled: Jun 11 2021 - 13:55:11 *** Compiled: Jun 12 2021 - 07:55:58
*** Platform: STM32G4 Hi-resolution Line *** Platform: STM32G4 Hi-resolution Line
*** Test Board: STMicroelectronics STM32 Nucleo64-G474RE *** Test Board: STMicroelectronics STM32 Nucleo64-G474RE
*** ***
*** Text size: 51060 bytes *** Text size: 51108 bytes
*** RO data size: 9904 bytes *** RO data size: 9904 bytes
*** Data size: 220 bytes *** Data size: 220 bytes
*** BSS size: 5400 bytes *** BSS size: 5400 bytes
@ -205,11 +205,11 @@
--- Result: SUCCESS --- Result: SUCCESS
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
--- Test Case 12.5 (Threads performance, full cycle) --- Test Case 12.5 (Threads performance, full cycle)
--- Score : 518288 threads/S --- Score : 521467 threads/S
--- Result: SUCCESS --- Result: SUCCESS
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
--- Test Case 12.6 (Threads performance, create/exit only) --- Test Case 12.6 (Threads performance, create/exit only)
--- Score : 643936 threads/S --- Score : 653843 threads/S
--- Result: SUCCESS --- Result: SUCCESS
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
--- Test Case 12.7 (Mass reschedule performance) --- Test Case 12.7 (Mass reschedule performance)
@ -249,11 +249,11 @@ Final result: SUCCESS
*** ChibiOS OS Library Test Suite *** ChibiOS OS Library Test Suite
*** ***
*** Compiled: Jun 11 2021 - 13:55:11 *** Compiled: Jun 12 2021 - 07:55:58
*** Platform: STM32G4 Hi-resolution Line *** Platform: STM32G4 Hi-resolution Line
*** Test Board: STMicroelectronics STM32 Nucleo64-G474RE *** Test Board: STMicroelectronics STM32 Nucleo64-G474RE
*** ***
*** Text size: 51060 bytes *** Text size: 51108 bytes
*** RO data size: 9904 bytes *** RO data size: 9904 bytes
*** Data size: 220 bytes *** Data size: 220 bytes
*** BSS size: 5400 bytes *** BSS size: 5400 bytes

View File

@ -265,7 +265,7 @@ msg_t chSemWaitTimeoutS(semaphore_t *sp, sysinterval_t timeout) {
"inconsistent semaphore"); "inconsistent semaphore");
if (--sp->cnt < (cnt_t)0) { if (--sp->cnt < (cnt_t)0) {
if (TIME_IMMEDIATE == timeout) { if (unlikely(TIME_IMMEDIATE == timeout)) {
sp->cnt++; sp->cnt++;
return MSG_TIMEOUT; return MSG_TIMEOUT;

View File

@ -520,7 +520,7 @@ void chThdExitS(msg_t msg) {
#if CH_CFG_USE_WAITEXIT == TRUE #if CH_CFG_USE_WAITEXIT == TRUE
/* Waking up any waiting thread.*/ /* Waking up any waiting thread.*/
while (ch_list_notempty(&currtp->waiting)) { while (unlikely(ch_list_notempty(&currtp->waiting))) {
(void) chSchReadyI((thread_t *)ch_list_unlink(&currtp->waiting)); (void) chSchReadyI((thread_t *)ch_list_unlink(&currtp->waiting));
} }
#endif #endif

View File

@ -445,7 +445,7 @@ void chVTDoTickI(void) {
chSysLockFromISR(); chSysLockFromISR();
/* If a reload is defined the timer needs to be restarted.*/ /* If a reload is defined the timer needs to be restarted.*/
if (vtp->reload > (sysinterval_t)0) { if (unlikely(vtp->reload > (sysinterval_t)0)) {
sysinterval_t delay; sysinterval_t delay;
/* Refreshing the current time after spending time in the callback for /* Refreshing the current time after spending time in the callback for