mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-30 19:47:46 +08:00
@@ -26,23 +26,14 @@
|
||||
|
||||
rtems_status_code rtems_clock_tick( void )
|
||||
{
|
||||
#if defined( RTEMS_SMP )
|
||||
_Thread_Disable_dispatch();
|
||||
#endif
|
||||
|
||||
_TOD_Tickle_ticks();
|
||||
|
||||
_Watchdog_Tickle_ticks();
|
||||
|
||||
_Scheduler_Tick();
|
||||
|
||||
#if defined( RTEMS_SMP )
|
||||
_Thread_Enable_dispatch();
|
||||
#else
|
||||
if ( _Thread_Is_context_switch_necessary() &&
|
||||
_Thread_Dispatch_is_enabled() )
|
||||
if ( _Thread_Dispatch_is_enabled() )
|
||||
_Thread_Dispatch();
|
||||
#endif
|
||||
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
@@ -431,11 +431,7 @@ rtems_timer_service_routine test_unblock_task(
|
||||
_Thread_Disable_dispatch();
|
||||
status = rtems_task_resume( blocked_task_id );
|
||||
_Thread_Unnest_dispatch();
|
||||
#if defined( RTEMS_SMP )
|
||||
directive_failed_with_level( status, "rtems_task_resume", 1 );
|
||||
#else
|
||||
directive_failed( status, "rtems_task_resume" );
|
||||
#endif
|
||||
}
|
||||
|
||||
rtems_task Init(
|
||||
|
||||
Reference in New Issue
Block a user