2009-10-11 Joel Sherrill <joel.sherrill@oarcorp.com>

* score/inline/rtems/score/thread.inl, score/src/threaddispatch.c:
	Correct conditionals so _Thread_Enable_dispatch() is always inlined
	when intended.
This commit is contained in:
Joel Sherrill
2009-10-11 14:18:03 +00:00
parent 5b5dd1c873
commit 6aa3ce3bfe
3 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2009-10-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/thread.inl, score/src/threaddispatch.c:
Correct conditionals so _Thread_Enable_dispatch() is always inlined
when intended.
2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com> 2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/include/rtems/posix/threadsup.h, posix/src/cancel.c, * posix/include/rtems/posix/threadsup.h, posix/src/cancel.c,

View File

@@ -220,7 +220,8 @@ RTEMS_INLINE_ROUTINE void _Thread_Disable_dispatch( void )
* processor will be transferred to the heir thread. * processor will be transferred to the heir thread.
*/ */
#if ( (CPU_INLINE_ENABLE_DISPATCH == FALSE) || \ #if ( (defined(CPU_INLINE_ENABLE_DISPATCH) && \
(CPU_INLINE_ENABLE_DISPATCH == FALSE)) || \
(__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ == 1) ) (__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ == 1) )
void _Thread_Enable_dispatch( void ); void _Thread_Enable_dispatch( void );
#else #else

View File

@@ -50,7 +50,8 @@
* no dispatch thread * no dispatch thread
*/ */
#if ( (CPU_INLINE_ENABLE_DISPATCH == FALSE) || \ #if ( (defined(CPU_INLINE_ENABLE_DISPATCH) && \
(CPU_INLINE_ENABLE_DISPATCH == FALSE)) || \
(__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ == 1) ) (__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ == 1) )
void _Thread_Enable_dispatch( void ) void _Thread_Enable_dispatch( void )
{ {