summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/ratemonimpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/ratemonimpl.h')
-rw-r--r--cpukit/rtems/include/rtems/rtems/ratemonimpl.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/ratemonimpl.h b/cpukit/rtems/include/rtems/rtems/ratemonimpl.h
index 9963cab612..b6b3ffd404 100644
--- a/cpukit/rtems/include/rtems/rtems/ratemonimpl.h
+++ b/cpukit/rtems/include/rtems/rtems/ratemonimpl.h
@@ -69,19 +69,19 @@ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void )
}
RTEMS_INLINE_ROUTINE void _Rate_monotonic_Acquire_critical(
- Thread_Control *the_thread,
- ISR_lock_Context *lock_context
+ Rate_monotonic_Control *the_period,
+ ISR_lock_Context *lock_context
)
{
- _Thread_Wait_acquire_default_critical( the_thread, lock_context );
+ _ISR_lock_Acquire( &the_period->Lock, lock_context );
}
RTEMS_INLINE_ROUTINE void _Rate_monotonic_Release(
- Thread_Control *the_thread,
- ISR_lock_Context *lock_context
+ Rate_monotonic_Control *the_period,
+ ISR_lock_Context *lock_context
)
{
- _Thread_Wait_release_default( the_thread, lock_context );
+ _ISR_lock_Release_and_ISR_enable( &the_period->Lock, lock_context );
}
RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get(