diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-25 11:24:44 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-26 09:22:41 +0200 |
commit | d811daca691e1fe9e8166fe20118148442f266a1 (patch) | |
tree | 017afda9dda2e68e9a2893d06d8983abfb2506dc /cpukit/score/src/profilingsmplock.c | |
parent | libmisc: Simplify <rtems/stackchk.h> (diff) | |
download | rtems-d811daca691e1fe9e8166fe20118148442f266a1.tar.bz2 |
score: Hide SMP lock profiling impl if disabled
The problem is that empty structures have a different size in C and C++.
Diffstat (limited to 'cpukit/score/src/profilingsmplock.c')
-rw-r--r-- | cpukit/score/src/profilingsmplock.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpukit/score/src/profilingsmplock.c b/cpukit/score/src/profilingsmplock.c index be60ba9dee..a77e1a1092 100644 --- a/cpukit/score/src/profilingsmplock.c +++ b/cpukit/score/src/profilingsmplock.c @@ -21,19 +21,19 @@ #if defined( RTEMS_PROFILING ) SMP_lock_Stats_control _SMP_lock_Stats_control = { .Lock = { - .ticket_lock = { + .Ticket_lock = { .next_ticket = ATOMIC_INITIALIZER_UINT( 0U ), - .now_serving = ATOMIC_INITIALIZER_UINT( 0U ), - .Stats = { - .Node = CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN( - &_SMP_lock_Stats_control.Stats_chain - ), - .name = "SMP lock stats" - } + .now_serving = ATOMIC_INITIALIZER_UINT( 0U ) + }, + .Stats = { + .Node = CHAIN_NODE_INITIALIZER_ONE_NODE_CHAIN( + &_SMP_lock_Stats_control.Stats_chain + ), + .name = "SMP Lock Stats" } }, .Stats_chain = CHAIN_INITIALIZER_ONE_NODE( - &_SMP_lock_Stats_control.Lock.ticket_lock.Stats.Node + &_SMP_lock_Stats_control.Lock.Stats.Node ), .Iterator_chain = CHAIN_INITIALIZER_EMPTY( _SMP_lock_Stats_control.Iterator_chain |