summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/mrsp.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-25 16:30:23 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-30 16:16:21 +0200
commitaf746b093a12871f7faec81c17f8b67fdd76799e (patch)
tree032b648c2be669815a51b2f3c59ca70e2ec396b1 /cpukit/score/include/rtems/score/mrsp.h
parentscore: _CORE_mutex_Check_dispatch_for_seize() (diff)
downloadrtems-af746b093a12871f7faec81c17f8b67fdd76799e.tar.bz2
score: Use thread queue lock for MrsP
Replace the ISR lock in MRSP_Control with a thread queue. This simplifies the Classic semaphore implementation. Only the lock part of the thread queue is used.
Diffstat (limited to 'cpukit/score/include/rtems/score/mrsp.h')
-rw-r--r--cpukit/score/include/rtems/score/mrsp.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/cpukit/score/include/rtems/score/mrsp.h b/cpukit/score/include/rtems/score/mrsp.h
index 595884864f..08a2427492 100644
--- a/cpukit/score/include/rtems/score/mrsp.h
+++ b/cpukit/score/include/rtems/score/mrsp.h
@@ -20,9 +20,9 @@
#if defined(RTEMS_SMP)
#include <rtems/score/chain.h>
-#include <rtems/score/isrlock.h>
#include <rtems/score/scheduler.h>
#include <rtems/score/thread.h>
+#include <rtems/score/threadq.h>
#ifdef __cplusplus
extern "C" {
@@ -115,6 +115,14 @@ typedef struct {
*/
struct MRSP_Control {
/**
+ * @brief Lock to protect the resource dependency tree.
+ *
+ * This is a thread queue since this simplifies the Classic semaphore
+ * implementation. Only the lock part of the thread queue is used.
+ */
+ Thread_queue_Control Wait_queue;
+
+ /**
* @brief Basic resource control.
*/
Resource_Control Resource;
@@ -127,11 +135,6 @@ struct MRSP_Control {
Chain_Control Rivals;
/**
- * @brief Lock to protect the resource dependency tree.
- */
- ISR_LOCK_MEMBER( Lock )
-
- /**
* @brief The initial priority of the owner before it was elevated to the
* ceiling priority.
*/