mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-24 02:57:00 +08:00
Remove RTEMS_ITRON_API conditional blocks.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user