summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/rtems/sem.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-12 14:16:30 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-16 14:47:25 +0100
commit0965b7c8b7956846167f43b813d68f8b5f2a60a1 (patch)
tree4c04e95b8512923fa6678413f7482e8be739fa89 /cpukit/include/rtems/rtems/sem.h
parentsp14: Fix for SMP or robust thread dispatch (diff)
downloadrtems-0965b7c8b7956846167f43b813d68f8b5f2a60a1.tar.bz2
rtems: Require RTEMS_PRIORITY for MrsP semaphores
MrsP semaphores are a generalization of the priority ceiling semaphores for SMP configurations. Priority ceiling semaphores are required to use the priority task wait queue discipline. Require this discipline also for MrsP semaphores. Close #4347.
Diffstat (limited to 'cpukit/include/rtems/rtems/sem.h')
-rw-r--r--cpukit/include/rtems/rtems/sem.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/include/rtems/rtems/sem.h b/cpukit/include/rtems/rtems/sem.h
index 74d0ab45a3..1f0c952294 100644
--- a/cpukit/include/rtems/rtems/sem.h
+++ b/cpukit/include/rtems/rtems/sem.h
@@ -803,7 +803,8 @@ rtems_status_code rtems_semaphore_flush( rtems_id id );
* sc = rtems_semaphore_create(
* rtems_build_name( 'M', 'R', 'S', 'P' ),
* 1,
- * RTEMS_BINARY_SEMAPHORE | RTEMS_MULTIPROCESSOR_RESOURCE_SHARING,
+ * RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY |
+ * RTEMS_MULTIPROCESSOR_RESOURCE_SHARING,
* 1,
* &semaphore_id
* );