diff options
Diffstat (limited to 'cpukit/score/src/threaddelayended.c')
-rw-r--r-- | cpukit/score/src/threaddelayended.c | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/cpukit/score/src/threaddelayended.c b/cpukit/score/src/threaddelayended.c index 0eb3adf3cb..95dae7d0fa 100644 --- a/cpukit/score/src/threaddelayended.c +++ b/cpukit/score/src/threaddelayended.c @@ -22,27 +22,17 @@ void _Thread_Delay_ended( Objects_Id id, - void *ignored __attribute__((unused)) + void *arg ) { - Thread_Control *the_thread; - Objects_Locations location; + Thread_Control *the_thread = arg; - the_thread = _Thread_Get( id, &location ); - switch ( location ) { - case OBJECTS_ERROR: -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: /* impossible */ -#endif - break; - case OBJECTS_LOCAL: - _Thread_Clear_state( - the_thread, - STATES_DELAYING - | STATES_WAITING_FOR_TIME - | STATES_INTERRUPTIBLE_BY_SIGNAL - ); - _Objects_Put_without_thread_dispatch( &the_thread->Object ); - break; - } + (void) id; + + _Thread_Clear_state( + the_thread, + STATES_DELAYING + | STATES_WAITING_FOR_TIME + | STATES_INTERRUPTIBLE_BY_SIGNAL + ); } |