Remove RTEMS_ITRON_API conditional blocks.

This commit is contained in:
Ralf Corsepius
2010-06-18 02:56:26 +00:00
parent 099cdd5b03
commit 1ada6163d8
7 changed files with 2 additions and 26 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
extern "C" {
#endif
#if defined(RTEMS_POSIX_API) || defined(RTEMS_ITRON_API)
#if defined(RTEMS_POSIX_API)
#define RTEMS_SCORE_CORESEM_ENABLE_SEIZE_BODY
#endif
+1 -1
View File
@@ -27,7 +27,7 @@
*/
/**@{*/
#if defined(RTEMS_POSIX_API) || defined(RTEMS_ITRON_API)
#if defined(RTEMS_POSIX_API)
#define RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE
#endif
-3
View File
@@ -110,9 +110,6 @@ void _API_extensions_Run_postswitch( void )
* Currently the ITRON API is the only API which does not
* provide this hook.
*/
#if defined(RTEMS_ITRON_API)
if ( the_extension->postswitch_hook )
#endif
(*the_extension->postswitch_hook)( _Thread_Executing );
}
}
-3
View File
@@ -190,9 +190,6 @@ bool _Thread_Initialize(
the_thread->current_state = STATES_DORMANT;
the_thread->Wait.queue = NULL;
the_thread->resource_count = 0;
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->real_priority = priority;
the_thread->Start.initial_priority = priority;
_Thread_Set_priority( the_thread, priority );
-3
View File
@@ -47,9 +47,6 @@ void _Thread_Reset(
)
{
the_thread->resource_count = 0;
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->is_preemptible = the_thread->Start.is_preemptible;
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
the_thread->budget_callout = the_thread->Start.budget_callout;
-12
View File
@@ -62,18 +62,6 @@ void _Thread_Resume(
_ISR_Disable( level );
#if defined(RTEMS_ITRON_API)
if ( force == true )
the_thread->suspend_count = 0;
else
the_thread->suspend_count--;
if ( the_thread->suspend_count > 0 ) {
_ISR_Enable( level );
return;
}
#endif
current_state = the_thread->current_state;
if ( current_state & STATES_SUSPENDED ) {
current_state =
-3
View File
@@ -56,9 +56,6 @@ void _Thread_Suspend(
ready = the_thread->ready;
_ISR_Disable( level );
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count++;
#endif
if ( !_States_Is_ready( the_thread->current_state ) ) {
the_thread->current_state =
_States_Set( STATES_SUSPENDED, the_thread->current_state );