summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-10-31 16:04:11 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-02 08:46:49 +0100
commitb7694c8c9bd6cd96690e2a756cc26f84315bcb13 (patch)
tree431139e757603a71a3c54aad0bd437815c3dc8ee
parentcpuuse: Use rtems_task_iterate() (diff)
downloadrtems-b7694c8c9bd6cd96690e2a756cc26f84315bcb13.tar.bz2
sptests/sp35: Remove dead code
-rw-r--r--testsuites/sptests/sp35/priinv.c72
1 files changed, 0 insertions, 72 deletions
diff --git a/testsuites/sptests/sp35/priinv.c b/testsuites/sptests/sp35/priinv.c
index b191bf3c86..8848348758 100644
--- a/testsuites/sptests/sp35/priinv.c
+++ b/testsuites/sptests/sp35/priinv.c
@@ -36,9 +36,6 @@
/* define this to print the Id of the calling task */
/* #define TEST_ON_TASK_ID */
-/* define this to print statistics when acquiring the mutex */
-/* #define TEST_PRINT_STATISTICS */
-
/* define this if you are (1) on a ERC32 and (2) want a SW ISR trigger */
#if defined(__sparc__)
/* #define TEST_USE_ISR */
@@ -246,21 +243,6 @@ void AccessLocalHw(void)
{
rtems_status_code Sts;
-#if defined(TEST_PRINT_STATISTICS)
- rtems_task_priority AccessPrio; /* : */
- uint32_t AccessCnt; /* : */
- rtems_task_priority EnterPrio; /* Statistics log */
- uint32_t EnterCnt; /* : */
- rtems_task_priority LeavePrio; /* : */
- uint32_t LeaveCnt; /* : */
-#endif
-
-#if defined(TEST_PRINT_STATISTICS)
- /* Store information about the current situation */
- EnterPrio = _Thread_Get_priority( _Thread_Executing );
- EnterCnt = _Thread_Executing->resource_count;
-#endif
-
printf(" AccessLocalHw called by %s\n", CallerName());
/* Obtain exclusive access to local HW, Start HW, Wait for completion,
@@ -275,29 +257,9 @@ void AccessLocalHw(void)
Sts = rtems_semaphore_obtain(LocalHwSync_S, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
directive_failed( Sts, "rtems_semaphore_obtain(LocalHwAccess_R...)" );
-#if defined(TEST_PRINT_STATISTICS)
- /* Store information about the current situation */
- AccessPrio = _Thread_Get_priority( _Thread_Executing );
- AccessCnt = _Thread_Executing->resource_count;
-#endif
-
Sts = rtems_semaphore_release(LocalHwAccess_R);
directive_failed( Sts, "rtems_semaphore_release(LocalHwAccess_R)" );
-#if defined(TEST_PRINT_STATISTICS)
- /* Store information about the current situation */
- LeavePrio = _Thread_Get_priority( _Thread_Executing );
- LeaveCnt = _Thread_Executing->resource_count;
-
- printf(
- " AccessLocalHw from %s statistics:\n"
- " - Prio: %d -> %d -> %d\n - Cnt: %d -> %d -> %d\n",
- CallerName(),
- EnterPrio, AccessPrio, LeavePrio,
- EnterCnt, AccessCnt, LeaveCnt
- );
-#endif
-
printf(" AccessLocalHw returns to %s\n", CallerName());
#if defined(TEST_EXIT_AFTER_ITERATIONS)
if ( ++Iterations == 10 ) {
@@ -312,21 +274,6 @@ void AccessRemoteHw(void)
{
rtems_status_code Sts;
-#if defined(TEST_PRINT_STATISTICS)
- rtems_task_priority EnterPrio; /* Statistics log */
- rtems_task_priority AccessPrio; /* : */
- rtems_task_priority LeavePrio; /* : */
- uint32_t EnterCnt; /* : */
- uint32_t AccessCnt; /* : */
- uint32_t LeaveCnt; /* : */
-#endif
-
-#if defined(TEST_PRINT_STATISTICS)
- /* Store information about the current situation */
- EnterPrio = _Thread_Get_priority( _Thread_Executing );
- EnterCnt = _Thread_Executing->resource_count;
-#endif
-
printf("AccessRemoteHw called by %s\n", CallerName());
/* Obtain exclusive access to remote HW, Start HW, Wait for completion,
@@ -340,28 +287,9 @@ void AccessRemoteHw(void)
printf("AccessRemoteHw access local %s\n", CallerName());
AccessLocalHw();
-#if defined(TEST_PRINT_STATISTICS)
- /* Store information about the current situation */
- AccessPrio = _Thread_Get_priority( _Thread_Executing );
- AccessCnt = _Thread_Executing->resource_count;
-#endif
-
Sts = rtems_semaphore_release(RemoteHwAccess_R);
directive_failed( Sts, "rtems_semaphore_release(RemoreHwAccess_R" );
-#if defined(TEST_PRINT_STATISTICS)
- /* Store information about the current situation */
- LeavePrio = _Thread_Get_priority( _Thread_Executing );
- LeaveCnt = _Thread_Executing->resource_count;
-
- printf(
- "\nAccessRemoteHw from %s statistics:\n"
- " - Prio: %d -> %d -> %d\n - Cnt: %d -> %d -> %d\n",
- CallerName(),
- EnterPrio, AccessPrio, LeavePrio,
- EnterCnt, AccessCnt, LeaveCnt);
-#endif
-
printf("AccessRemoteHw returns to %s\n", CallerName());
return;
}