source: rtems/cpukit/score/src/profilingsmplock.c @ 25f5730f

4.11
Last change on this file since 25f5730f was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 * Copyright (c) 2014 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#ifdef HAVE_CONFIG_H
16  #include "config.h"
17#endif
18
19#include <rtems/score/smplock.h>
20
21#if defined( RTEMS_PROFILING )
22SMP_lock_Stats_control _SMP_lock_Stats_control = {
23  .Lock = {
24    .ticket_lock = {
25      .next_ticket = ATOMIC_INITIALIZER_UINT( 0U ),
26      .now_serving = ATOMIC_INITIALIZER_UINT( 0U ),
27      .Stats = {
28        .Node = CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN(
29          &_SMP_lock_Stats_control.Stats_chain
30        ),
31        .name = "SMP lock stats"
32      }
33    }
34  },
35  .Stats_chain = CHAIN_INITIALIZER_ONE_NODE(
36    &_SMP_lock_Stats_control.Lock.ticket_lock.Stats.Node
37  ),
38  .Iterator_chain = CHAIN_INITIALIZER_EMPTY(
39    _SMP_lock_Stats_control.Iterator_chain
40  )
41};
42#endif /* defined( RTEMS_PROFILING ) */
Note: See TracBrowser for help on using the repository browser.