Ignore:
Timestamp:
Jan 24, 2017, 1:37:42 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
625bd6a
Parents:
6af2221
git-author:
Sebastian Huber <sebastian.huber@…> (01/24/17 13:37:42)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/24/17 13:44:37)
Message:

rtems: Fix _Rate_monotonic_Renew_deadline()

Make _Rate_monotonic_Renew_deadline() static and use proper locking in SMP
configurations.

Update #2795.

File:
1 edited

Legend:

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

    r6af2221 r1240aade  
    119119  _Thread_Priority_update( &queue_context );
    120120  _Thread_Dispatch_enable( cpu_self );
    121 }
    122 
    123 void _Rate_monotonic_Renew_deadline(
    124   Rate_monotonic_Control *the_period,
    125   Thread_Control         *owner,
    126   ISR_lock_Context       *lock_context
    127 )
    128 {
    129   Per_CPU_Control *cpu_self;
    130   uint64_t deadline;
    131 
    132   cpu_self = _Thread_Dispatch_disable_critical( lock_context );
    133   _Rate_monotonic_Release( owner, lock_context );
    134 
    135   _ISR_lock_ISR_disable( lock_context );
    136   deadline = _Watchdog_Per_CPU_insert_relative(
    137     &the_period->Timer,
    138     cpu_self,
    139     the_period->next_length
    140   );
    141   the_period->latest_deadline = deadline;
    142   _ISR_lock_ISR_enable( lock_context );
    143   _Thread_Dispatch_enable( cpu_self );
    144 
    145121}
    146122
Note: See TracChangeset for help on using the changeset viewer.