Changeset 625bd6a in rtems for cpukit/rtems/src/ratemonperiod.c


Ignore:
Timestamp:
Jan 24, 2017, 2:04:11 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b8d6eb7
Parents:
1240aade
Message:

rtems: Fix _Rate_monotonic_Release_postponed_job()

Use proper locking in SMP configurations.

Update #2795.

File:
1 edited

Legend:

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

    r1240aade r625bd6a  
    7272)
    7373{
    74   /* This function only releases the postponed jobs. */
    75   Per_CPU_Control *cpu_self;
     74  Per_CPU_Control      *cpu_self;
    7675  Thread_queue_Context  queue_context;
    77   cpu_self = _Thread_Dispatch_disable_critical( lock_context );
    78   _Rate_monotonic_Release( owner, lock_context );
    79 
    80   the_period->postponed_jobs -=1;
     76
     77  --the_period->postponed_jobs;
    8178  _Scheduler_Release_job(
    8279    owner,
     
    8683  );
    8784
     85  cpu_self = _Thread_Dispatch_disable_critical( lock_context );
    8886  _Rate_monotonic_Release( the_period, lock_context );
    8987  _Thread_Priority_update( &queue_context );
Note: See TracChangeset for help on using the changeset viewer.