Changeset baa13626 in rtems


Ignore:
Timestamp:
Mar 22, 2016, 6:22:08 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
30cac38
Parents:
90960bd
Message:

score: Fix for RTEMS_DEBUG

Update #2627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/schedulerimpl.h

    r90960bd rbaa13626  
    13531353  if ( heir != new_heir && ( heir->is_preemptible || force_dispatch ) ) {
    13541354#if defined(RTEMS_SMP)
    1355     /* We need this state only for _Thread_Get_CPU_time_used() */
    1356     _Scheduler_Thread_change_state( heir, THREAD_SCHEDULER_BLOCKED );
    1357     _Scheduler_Thread_change_state( new_heir, THREAD_SCHEDULER_SCHEDULED );
     1355    /*
     1356     * We need this state only for _Thread_Get_CPU_time_used().  Cannot use
     1357     * _Scheduler_Thread_change_state() since THREAD_SCHEDULER_BLOCKED to
     1358     * THREAD_SCHEDULER_BLOCKED state changes are illegal for the real SMP
     1359     * schedulers.
     1360     */
     1361    heir->Scheduler.state = THREAD_SCHEDULER_BLOCKED;
     1362    new_heir->Scheduler.state = THREAD_SCHEDULER_SCHEDULED;
    13581363#endif
    13591364    _Thread_Update_CPU_time_used( heir, _Thread_Get_CPU( heir ) );
Note: See TracChangeset for help on using the changeset viewer.