Changeset f9090ac in rtems


Ignore:
Timestamp:
Jun 19, 2015, 7:38:20 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
cdf30f05
Parents:
f22af606
git-author:
Sebastian Huber <sebastian.huber@…> (06/19/15 19:38:20)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/19/15 19:38:52)
Message:

tmtests/tm27: Use scheduler lock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/tmtests/tm27/task1.c

    rf22af606 rf9090ac  
    225225)
    226226{
     227  Thread_Control *executing = _Thread_Get_executing();
    227228  Scheduler_priority_Context *scheduler_context =
    228     _Scheduler_priority_Get_context( _Scheduler_Get( _Thread_Get_executing() ) );
    229 #if defined(RTEMS_SMP)
    230   rtems_interrupt_level level;
    231 #endif
     229    _Scheduler_priority_Get_context( _Scheduler_Get( executing ) );
     230  ISR_lock_Context lock_context;
    232231
    233232#if (MUST_WAIT_FOR_INTERRUPT == 1)
     
    258257   */
    259258
    260 #if defined(RTEMS_SMP)
    261   rtems_interrupt_disable(level);
    262 #endif
     259  _Scheduler_Acquire( executing, &lock_context );
    263260
    264261  _Thread_Executing =
     
    267264  _Thread_Dispatch_necessary = 1;
    268265
    269 #if defined(RTEMS_SMP)
    270   rtems_interrupt_enable(level);
    271 #endif
     266  _Scheduler_Release( executing, &lock_context );
    272267
    273268  _Thread_Dispatch();
Note: See TracChangeset for help on using the changeset viewer.