From 56778835b6e4c3a722339e6a18f12f332f214d27 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 24 Jul 2018 09:09:06 +0200 Subject: [PATCH] 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. --- cpukit/include/rtems/score/smpimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/include/rtems/score/smpimpl.h b/cpukit/include/rtems/score/smpimpl.h index 762b3e5fc1..75d36ac865 100644 --- a/cpukit/include/rtems/score/smpimpl.h +++ b/cpukit/include/rtems/score/smpimpl.h @@ -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 */