diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-24 14:37:42 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-24 14:44:37 +0100 |
commit | 1240aade5a35c4e8c43d5409e2329eeb6a173299 (patch) | |
tree | e448ee77dda407cc8c04ccddaf3cb982f7d3e569 /cpukit/rtems/src/ratemonperiod.c | |
parent | fsscandir01: Check MAXNAMLEN and NAME_MAX (diff) | |
download | rtems-1240aade5a35c4e8c43d5409e2329eeb6a173299.tar.bz2 |
rtems: Fix _Rate_monotonic_Renew_deadline()
Make _Rate_monotonic_Renew_deadline() static and use proper locking in SMP
configurations.
Update #2795.
Diffstat (limited to '')
-rw-r--r-- | cpukit/rtems/src/ratemonperiod.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/cpukit/rtems/src/ratemonperiod.c b/cpukit/rtems/src/ratemonperiod.c index 128af57dee..a4d224f0d9 100644 --- a/cpukit/rtems/src/ratemonperiod.c +++ b/cpukit/rtems/src/ratemonperiod.c @@ -120,30 +120,6 @@ static void _Rate_monotonic_Release_job( _Thread_Dispatch_enable( cpu_self ); } -void _Rate_monotonic_Renew_deadline( - Rate_monotonic_Control *the_period, - Thread_Control *owner, - ISR_lock_Context *lock_context -) -{ - Per_CPU_Control *cpu_self; - uint64_t deadline; - - cpu_self = _Thread_Dispatch_disable_critical( lock_context ); - _Rate_monotonic_Release( owner, lock_context ); - - _ISR_lock_ISR_disable( lock_context ); - deadline = _Watchdog_Per_CPU_insert_relative( - &the_period->Timer, - cpu_self, - the_period->next_length - ); - the_period->latest_deadline = deadline; - _ISR_lock_ISR_enable( lock_context ); - _Thread_Dispatch_enable( cpu_self ); - -} - void _Rate_monotonic_Restart( Rate_monotonic_Control *the_period, Thread_Control *owner, |