From 0965b7c8b7956846167f43b813d68f8b5f2a60a1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 12 Mar 2021 14:16:30 +0100 Subject: 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. --- cpukit/include/rtems/rtems/sem.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/include/rtems/rtems/sem.h') 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 * ); -- cgit v1.2.3