summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-21 12:56:51 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-23 11:42:32 +0100
commitcb648b75ffbad68947f1603ac66e8c9adb519ec0 (patch)
tree4775398868d6ee0d92ee2377cc18acdd308aa1df
parent3f85deb858cde2c0ab50007e84c4980f4fcc53ca (diff)
PR 2026/filesystem - Fix semaphore attributes
Semaphores of type RTEMS_SIMPLE_BINARY_SEMAPHORE are not suitable for a mutex. Use RTEMS_BINARY_SEMAPHORE with RTEMS_INHERIT_PRIORITY instead.
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-mutex.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-mutex.c b/cpukit/libfs/src/rfs/rtems-rfs-mutex.c
index 90a865fb76..17f80b38b6 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-mutex.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-mutex.c
@@ -24,15 +24,10 @@
#if __rtems__
/**
* RTEMS_RFS Mutex Attributes
- *
- * @warning Do not configure as inherit priority. If a driver is in the driver
- * initialisation table this locked semaphore will have the IDLE task
- * as the holder and a blocking task will raise the priority of the
- * IDLE task which can cause unsual side effects like not work.
*/
#define RTEMS_RFS_MUTEX_ATTRIBS \
- (RTEMS_PRIORITY | RTEMS_SIMPLE_BINARY_SEMAPHORE | \
- RTEMS_NO_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
+ (RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE | \
+ RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
#endif
int