mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 12:54:50 +08:00
score: _SMP_Inter_processor_interrupt_handler()
Optimize _SMP_Inter_processor_interrupt_handler() for the common case in which the inter-processor interrupt is only used to trigger a thread dispatch.
This commit is contained in:
@@ -186,7 +186,7 @@ static inline long unsigned _SMP_Inter_processor_interrupt_handler(
|
||||
ATOMIC_ORDER_ACQUIRE
|
||||
);
|
||||
|
||||
if ( message != 0 ) {
|
||||
if ( RTEMS_PREDICT_FALSE( message != 0 ) ) {
|
||||
if ( ( message & SMP_MESSAGE_SHUTDOWN ) != 0 ) {
|
||||
_SMP_Fatal( SMP_FATAL_SHUTDOWN_RESPONSE );
|
||||
/* does not continue past here */
|
||||
|
||||
Reference in New Issue
Block a user