diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-01 08:40:23 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-01 14:10:22 +0200 |
commit | 57db5f13fb10e1f0231f2a5ce084cd72726ff096 (patch) | |
tree | 3effb1d0f991c7f104e75c4673bb93f9ca794da3 | |
parent | ringbuf: Fix ISR lock initialization/destruction (diff) | |
download | rtems-57db5f13fb10e1f0231f2a5ce084cd72726ff096.tar.bz2 |
smptests/smpthreadlife01: Avoid bad profiling stat
-rw-r--r-- | testsuites/smptests/smpthreadlife01/init.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuites/smptests/smpthreadlife01/init.c b/testsuites/smptests/smpthreadlife01/init.c index d1786e39cc..8ff5ea1c50 100644 --- a/testsuites/smptests/smpthreadlife01/init.c +++ b/testsuites/smptests/smpthreadlife01/init.c @@ -21,6 +21,7 @@ #include <rtems.h> #include <rtems/counter.h> #include <rtems/libcsupport.h> +#include <rtems/score/profiling.h> #include <rtems/score/smpbarrier.h> #include <rtems/score/threadimpl.h> @@ -75,6 +76,9 @@ static void switch_extension(Thread_Control *executing, Thread_Control *heir) ctx->delay_switch_for_executing = NULL; _SMP_barrier_Wait(&ctx->barrier, &ctx->worker_barrier_state, CPU_COUNT); rtems_counter_delay_nanoseconds(100000000); + + /* Avoid bad profiling statisitics */ + _Profiling_Thread_dispatch_disable( _Per_CPU_Get(), 0 ); } } @@ -305,7 +309,7 @@ static void Init(rtems_task_argument arg) rtems_test_exit(0); } -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER +#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define CONFIGURE_SMP_APPLICATION |