diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-24 09:09:06 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-25 10:07:42 +0200 |
commit | 56778835b6e4c3a722339e6a18f12f332f214d27 (patch) | |
tree | aacc8b03725d07026dbbf06dbbbbc8b74e85f52a | |
parent | score: RTEMS_PREDICT_TRUE(), RTEMS_PREDICT_FALSE() (diff) | |
download | rtems-56778835b6e4c3a722339e6a18f12f332f214d27.tar.bz2 |
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.
-rw-r--r-- | cpukit/include/rtems/score/smpimpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |