diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-29 10:28:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-02 07:46:14 +0200 |
commit | 1b7a6a386327bb7e3dc12a164aa8ee086b93b7f2 (patch) | |
tree | 74a89e58f3ab79416b4c7bb1ee8905fb2f7924d0 /cpukit/score/src/coremsginsert.c | |
parent | score: _CORE_message_queue_Submit() (diff) | |
download | rtems-1b7a6a386327bb7e3dc12a164aa8ee086b93b7f2.tar.bz2 |
score: _CORE_message_queue_Set_message_priority()
Remove _CORE_message_queue_Set_message_priority() and set the priority
in _CORE_message_queue_Insert_message().
Diffstat (limited to 'cpukit/score/src/coremsginsert.c')
-rw-r--r-- | cpukit/score/src/coremsginsert.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/src/coremsginsert.c b/cpukit/score/src/coremsginsert.c index 0a73af8c71..a58a451891 100644 --- a/cpukit/score/src/coremsginsert.c +++ b/cpukit/score/src/coremsginsert.c @@ -48,7 +48,10 @@ void _CORE_message_queue_Insert_message( bool notify; #endif - _CORE_message_queue_Set_message_priority( the_message, submit_type ); +#if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) + the_message->priority = submit_type; +#endif + pending_messages = &the_message_queue->Pending_messages; #if defined(RTEMS_SCORE_COREMSG_ENABLE_NOTIFICATION) |