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:
Sebastian Huber
2018-07-25 10:07:42 +02:00
parent a1f7d7d430
commit 56778835b6
+1 -1
View File
@@ -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 */