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/smp.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 '')
-rw-r--r-- | cpukit/score/src/smp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index 8ffeb1d828..a64287e51a 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -80,7 +80,8 @@ void _SMP_Handler_initialize( void ) for ( cpu_index = 0 ; cpu_index < cpu_max; ++cpu_index ) { Per_CPU_Control *cpu = _Per_CPU_Get_by_index( cpu_index ); - _SMP_ticket_lock_Initialize( &cpu->Lock, "per-CPU" ); + _SMP_ticket_lock_Initialize( &cpu->Lock ); + _SMP_lock_Stats_initialize( &cpu->Lock_stats, "Per-CPU" ); } /* |