Changeset 80f376d in rtems


Ignore:
Timestamp:
May 6, 2015, 12:25:09 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
a816f084
Parents:
900d337f
git-author:
Sebastian Huber <sebastian.huber@…> (05/06/15 12:25:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/19/15 10:00:47)
Message:

score: Remove Giant lock in rtems_clock_tick()

Update #2307.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/clocktick.c

    r900d337f r80f376d  
    2727rtems_status_code rtems_clock_tick( void )
    2828{
    29 #if defined( RTEMS_SMP )
    30   _Thread_Disable_dispatch();
    31 #endif
    32 
    3329  _TOD_Tickle_ticks();
    3430
     
    3733  _Scheduler_Tick();
    3834
    39 #if defined( RTEMS_SMP )
    40   _Thread_Enable_dispatch();
    41 #else
    42   if ( _Thread_Is_context_switch_necessary() &&
    43        _Thread_Dispatch_is_enabled() )
     35  if ( _Thread_Dispatch_is_enabled() )
    4436    _Thread_Dispatch();
    45 #endif
    4637
    4738  return RTEMS_SUCCESSFUL;
  • testsuites/sptests/sp37/init.c

    r900d337f r80f376d  
    432432  status = rtems_task_resume( blocked_task_id );
    433433  _Thread_Unnest_dispatch();
    434 #if defined( RTEMS_SMP )
    435   directive_failed_with_level( status, "rtems_task_resume", 1 );
    436 #else
    437434  directive_failed( status, "rtems_task_resume" );
    438 #endif
    439435}
    440436
Note: See TracChangeset for help on using the changeset viewer.