summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-23 07:16:41 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-23 12:52:05 +0100
commitec17ad4c24a9b3f9c175240d66f8e39acf58e6d1 (patch)
treeb4303f6bc5a3a02ffa092c50d392822a17f3a2a3
parentarm: Fix _ARMV4_Exception_interrupt (diff)
downloadrtems-ec17ad4c24a9b3f9c175240d66f8e39acf58e6d1.tar.bz2
score: Delete obsolete scheduler debug aid
-rw-r--r--cpukit/score/Makefile.am1
-rw-r--r--cpukit/score/include/rtems/score/schedulerimpl.h6
-rw-r--r--cpukit/score/include/rtems/score/schedulersmpimpl.h6
-rw-r--r--cpukit/score/src/schedulersmpdebug.c54
4 files changed, 0 insertions, 67 deletions
diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am
index 58f9e652e5..02b0bfb260 100644
--- a/cpukit/score/Makefile.am
+++ b/cpukit/score/Makefile.am
@@ -155,7 +155,6 @@ libscore_a_SOURCES += src/schedulerpriorityaffinitysmp.c
libscore_a_SOURCES += src/schedulerprioritysmp.c
libscore_a_SOURCES += src/schedulersimplesmp.c
libscore_a_SOURCES += src/schedulerstrongapa.c
-libscore_a_SOURCES += src/schedulersmpdebug.c
libscore_a_SOURCES += src/smp.c
libscore_a_SOURCES += src/smplock.c
libscore_a_SOURCES += src/smpmulticastaction.c
diff --git a/cpukit/score/include/rtems/score/schedulerimpl.h b/cpukit/score/include/rtems/score/schedulerimpl.h
index 62a8e94fa1..737d1a35ab 100644
--- a/cpukit/score/include/rtems/score/schedulerimpl.h
+++ b/cpukit/score/include/rtems/score/schedulerimpl.h
@@ -859,18 +859,12 @@ typedef void ( *Scheduler_Release_idle_thread )(
Thread_Control *idle
);
-extern const bool _Scheduler_Thread_state_valid_state_changes[ 3 ][ 3 ];
-
RTEMS_INLINE_ROUTINE void _Scheduler_Thread_change_state(
Thread_Control *the_thread,
Thread_Scheduler_state new_state
)
{
_Assert(
- _Scheduler_Thread_state_valid_state_changes
- [ the_thread->Scheduler.state ][ new_state ]
- );
- _Assert(
_ISR_lock_Is_owner( &the_thread->Scheduler.Lock )
|| the_thread->Scheduler.state == THREAD_SCHEDULER_BLOCKED
|| !_System_state_Is_up( _System_state_Get() )
diff --git a/cpukit/score/include/rtems/score/schedulersmpimpl.h b/cpukit/score/include/rtems/score/schedulersmpimpl.h
index 95a9eaed06..92a22d2ff8 100644
--- a/cpukit/score/include/rtems/score/schedulersmpimpl.h
+++ b/cpukit/score/include/rtems/score/schedulersmpimpl.h
@@ -425,8 +425,6 @@ static inline void _Scheduler_SMP_Node_update_priority(
node->priority = new_priority;
}
-extern const bool _Scheduler_SMP_Node_valid_state_changes[ 3 ][ 3 ];
-
static inline void _Scheduler_SMP_Node_change_state(
Scheduler_Node *node,
Scheduler_SMP_Node_state new_state
@@ -435,10 +433,6 @@ static inline void _Scheduler_SMP_Node_change_state(
Scheduler_SMP_Node *the_node;
the_node = _Scheduler_SMP_Node_downcast( node );
- _Assert(
- _Scheduler_SMP_Node_valid_state_changes[ the_node->state ][ new_state ]
- );
-
the_node->state = new_state;
}
diff --git a/cpukit/score/src/schedulersmpdebug.c b/cpukit/score/src/schedulersmpdebug.c
deleted file mode 100644
index 1ccebba788..0000000000
--- a/cpukit/score/src/schedulersmpdebug.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * @file
- *
- * @ingroup ScoreScheduler
- *
- * @brief Scheduler SMP Debug Implementation
- */
-
-/*
- * Copyright (c) 2014 embedded brains GmbH. All rights reserved.
- *
- * embedded brains GmbH
- * Dornierstr. 4
- * 82178 Puchheim
- * Germany
- * <rtems@embedded-brains.de>
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#if HAVE_CONFIG_H
- #include "config.h"
-#endif
-
-#include <rtems/score/schedulerimpl.h>
-#include <rtems/score/schedulerpriorityimpl.h>
-
-#if defined(RTEMS_DEBUG)
-
-/*
- * Table with all valid state transitions for _Scheduler_Thread_change_state()
- * in case RTEMS_DEBUG is defined.
- */
-const bool _Scheduler_Thread_state_valid_state_changes[ 3 ][ 3 ] = {
- /* FROM / TO BLOCKED SCHEDULED READY */
- /* BLOCKED */ { true, true, true },
- /* SCHEDULED */ { true, true, true },
- /* READY */ { true, true, true }
-};
-
-/*
- * Table with all valid state transitions for
- * _Scheduler_SMP_Node_change_state() in case RTEMS_DEBUG is defined.
- */
-const bool _Scheduler_SMP_Node_valid_state_changes[ 3 ][ 3 ] = {
- /* FROM / TO BLOCKED SCHEDULED READY */
- /* BLOCKED */ { true, true, true },
- /* SCHEDULED */ { true, false, true },
- /* READY */ { true, true, false }
-};
-
-#endif