source: rtems/cpukit/score/src/smplock.c @ 9052f88

4.115
Last change on this file since 9052f88 was 9052f88, checked in by Sebastian Huber <sebastian.huber@…>, on 05/11/15 at 08:14:31

score: Do not inline SMP lock if profiling enabled

This reduces the code size drastically.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 * Copyright (c) 2015 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#if HAVE_CONFIG_H
16  #include "config.h"
17#endif
18
19#include <rtems/score/smplock.h>
20
21#if defined(RTEMS_SMP_LOCK_DO_NOT_INLINE)
22
23void _SMP_lock_Initialize(
24  SMP_lock_Control *lock,
25  const char *name
26)
27{
28  _SMP_lock_Initialize_body( lock, name );
29}
30
31void _SMP_lock_Destroy( SMP_lock_Control *lock )
32{
33  _SMP_lock_Destroy_body( lock );
34}
35
36void _SMP_lock_Acquire(
37  SMP_lock_Control *lock,
38  SMP_lock_Context *context
39)
40{
41  _SMP_lock_Acquire_body( lock, context );
42}
43
44void _SMP_lock_Release(
45  SMP_lock_Control *lock,
46  SMP_lock_Context *context
47)
48{
49  _SMP_lock_Release_body( lock, context );
50}
51
52void _SMP_lock_ISR_disable_and_acquire(
53  SMP_lock_Control *lock,
54  SMP_lock_Context *context
55)
56{
57  _SMP_lock_ISR_disable_and_acquire_body( lock, context );
58}
59
60void _SMP_lock_Release_and_ISR_enable(
61  SMP_lock_Control *lock,
62  SMP_lock_Context *context
63)
64{
65  _SMP_lock_Release_and_ISR_enable_body( lock, context );
66}
67
68#endif /* defined(RTEMS_SMP_LOCK_DO_NOT_INLINE) */
Note: See TracBrowser for help on using the repository browser.