2009-07-10 Joel Sherrill <joel.sherrill@OARcorp.com>

* configure.ac, score/src/threadqenqueuepriority.c: Add
	RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY to give user ability to
	disable the loop in _Thread_queue_Enqueue_priority from being
	unrolled. This reduces code size and makes coverage analysis easier.
This commit is contained in:
Joel Sherrill
2009-07-10 20:32:48 +00:00
parent 0c196a192b
commit 3a0827287d
3 changed files with 23 additions and 3 deletions
+7
View File
@@ -1,3 +1,10 @@
2009-07-10 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac, score/src/threadqenqueuepriority.c: Add
RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY to give user ability to
disable the loop in _Thread_queue_Enqueue_priority from being
unrolled. This reduces code size and makes coverage analysis easier.
2009-07-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/watchdogadjusttochain.c: Rework to ease code coverage
+6
View File
@@ -232,6 +232,12 @@ RTEMS_CPUOPT([__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__],
[1],
[disable inlining _Thread_Enable_dispatch])
## This improves both the size and coverage analysis.
RTEMS_CPUOPT([__RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY__],
[test x"${RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY}" = x"1"],
[1],
[disable inlining _Thread_queue_Enqueue_priority])
## This gives the same behavior as 4.8 and older
RTEMS_CPUOPT([__RTEMS_STRICT_ORDER_MUTEX__],
[test x"${ENABLE_STRICT_ORDER_MUTEX}" = x"1"],
+10 -3
View File
@@ -1,8 +1,7 @@
/*
* Thread Queue Handler
* Thread Queue Handler - Enqueue By Priority
*
*
* COPYRIGHT (c) 1989-2008.
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -25,6 +24,14 @@
#include <rtems/score/threadq.h>
#include <rtems/score/tqdata.h>
/*
* Support the user forcing the unrolling to be disabled.
*/
#if __RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY__
#undef CPU_UNROLL_ENQUEUE_PRIORITY
#define CPU_UNROLL_ENQUEUE_PRIORITY FALSE
#endif
/*PAGE
*
* _Thread_queue_Enqueue_priority