diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-11 10:14:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-19 12:00:48 +0200 |
commit | 9052f88b1647c7ba77e2159b0012e014ab165b2b (patch) | |
tree | fba29724ded252d9e99393fbb6a7d77ebf27e9bb /cpukit/score/src | |
parent | score: Delete _Objects_Put_for_get_isr_disable() (diff) | |
download | rtems-9052f88b1647c7ba77e2159b0012e014ab165b2b.tar.bz2 |
score: Do not inline SMP lock if profiling enabled
This reduces the code size drastically.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/smplock.c | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/cpukit/score/src/smplock.c b/cpukit/score/src/smplock.c new file mode 100644 index 0000000000..14400917ef --- /dev/null +++ b/cpukit/score/src/smplock.c @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2015 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Dornierstr. 4 + * 82178 Puchheim + * Germany + * <rtems@embedded-brains.de> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#if HAVE_CONFIG_H + #include "config.h" +#endif + +#include <rtems/score/smplock.h> + +#if defined(RTEMS_SMP_LOCK_DO_NOT_INLINE) + +void _SMP_lock_Initialize( + SMP_lock_Control *lock, + const char *name +) +{ + _SMP_lock_Initialize_body( lock, name ); +} + +void _SMP_lock_Destroy( SMP_lock_Control *lock ) +{ + _SMP_lock_Destroy_body( lock ); +} + +void _SMP_lock_Acquire( + SMP_lock_Control *lock, + SMP_lock_Context *context +) +{ + _SMP_lock_Acquire_body( lock, context ); +} + +void _SMP_lock_Release( + SMP_lock_Control *lock, + SMP_lock_Context *context +) +{ + _SMP_lock_Release_body( lock, context ); +} + +void _SMP_lock_ISR_disable_and_acquire( + SMP_lock_Control *lock, + SMP_lock_Context *context +) +{ + _SMP_lock_ISR_disable_and_acquire_body( lock, context ); +} + +void _SMP_lock_Release_and_ISR_enable( + SMP_lock_Control *lock, + SMP_lock_Context *context +) +{ + _SMP_lock_Release_and_ISR_enable_body( lock, context ); +} + +#endif /* defined(RTEMS_SMP_LOCK_DO_NOT_INLINE) */ |