diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-24 09:00:18 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-25 10:07:42 +0200 |
commit | a1f7d7d430466fe66ead3155a9015ddde237fd44 (patch) | |
tree | 345c928410b1a7216b48473f4792742389b540e1 /cpukit/score/src/futex.c | |
parent | _SMP_Start_multitasking_on_secondary_processor() (diff) | |
download | rtems-a1f7d7d430466fe66ead3155a9015ddde237fd44.tar.bz2 |
score: RTEMS_PREDICT_TRUE(), RTEMS_PREDICT_FALSE()
Add RTEMS_PREDICT_TRUE() and RTEMS_PREDICT_FALSE() for static branch
prediction hints.
Close #3475.
Diffstat (limited to 'cpukit/score/src/futex.c')
-rw-r--r-- | cpukit/score/src/futex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/futex.c b/cpukit/score/src/futex.c index 6487882819..f32a13c449 100644 --- a/cpukit/score/src/futex.c +++ b/cpukit/score/src/futex.c @@ -151,7 +151,7 @@ int _Futex_Wake( struct _Futex_Control *_futex, int count ) * called in the fast path. Normally there are no threads on the queue, so * check this condition early. */ - if ( __predict_true( _Thread_queue_Is_empty( &futex->Queue.Queue ) ) ) { + if ( RTEMS_PREDICT_TRUE( _Thread_queue_Is_empty( &futex->Queue.Queue ) ) ) { _Futex_Queue_release( futex, level, &context.Base ); return 0; } |