summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadinitialize.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-29 14:23:42 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-07-30 08:06:01 +0200
commit10e32a26342573566b83d5bee64970077d679ed5 (patch)
tree37b4520d1ee9c09bc3b682130ed0d0c316caeb4a /cpukit/score/src/threadinitialize.c
parentscore: Provide struct _Thread_queue_Heads (diff)
downloadrtems-10e32a26342573566b83d5bee64970077d679ed5.tar.bz2
score: Add potpourri lock statistics
These SMP lock statistics are used for all lock objects that lack a storage space for the statistics. Examples are lock objects used in external libraries which are independent of the actual RTEMS build configuration.
Diffstat (limited to 'cpukit/score/src/threadinitialize.c')
-rw-r--r--cpukit/score/src/threadinitialize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c
index 9019e1fd30..7452c932d8 100644
--- a/cpukit/score/src/threadinitialize.c
+++ b/cpukit/score/src/threadinitialize.c
@@ -205,6 +205,7 @@ bool _Thread_Initialize(
_CPU_Context_Set_is_executing( &the_thread->Registers, false );
the_thread->Lock.current = &the_thread->Lock.Default;
_ISR_lock_Initialize( &the_thread->Lock.Default, "Thread Lock Default");
+ _SMP_lock_Stats_initialize( &the_thread->Potpourri_stats, "Thread Potpourri" );
_Atomic_Init_uint(&the_thread->Lock.generation, 0);
#endif