diff options
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/schedulerdefaulttick.c | 7 | ||||
-rw-r--r-- | cpukit/score/src/threaddispatch.c | 15 | ||||
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 6 |
3 files changed, 5 insertions, 23 deletions
diff --git a/cpukit/score/src/schedulerdefaulttick.c b/cpukit/score/src/schedulerdefaulttick.c index db67ca1508..19acd3b2b8 100644 --- a/cpukit/score/src/schedulerdefaulttick.c +++ b/cpukit/score/src/schedulerdefaulttick.c @@ -31,13 +31,6 @@ void _Scheduler_default_Tick( { (void) scheduler; - #ifdef __RTEMS_USE_TICKS_FOR_STATISTICS__ - /* - * Increment the number of ticks this thread has been executing - */ - executing->cpu_time_used++; - #endif - /* * If the thread is not preemptible or is not ready, then * just return. diff --git a/cpukit/score/src/threaddispatch.c b/cpukit/score/src/threaddispatch.c index f20f427bd6..cce3affda4 100644 --- a/cpukit/score/src/threaddispatch.c +++ b/cpukit/score/src/threaddispatch.c @@ -99,17 +99,10 @@ void _Thread_Do_dispatch( Per_CPU_Control *cpu_self, ISR_Level level ) _ISR_Enable( level ); #endif - #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ - _Thread_Update_cpu_time_used( - executing, - &cpu_self->time_of_last_context_switch - ); - #else - { - _TOD_Get_uptime( &cpu_self->time_of_last_context_switch ); - heir->cpu_time_used++; - } - #endif + _Thread_Update_cpu_time_used( + executing, + &cpu_self->time_of_last_context_switch + ); #if !defined(__DYNAMIC_REENT__) /* diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index 3c0a412aee..c6985f013b 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -217,11 +217,7 @@ bool _Thread_Initialize( /* * Initialize the CPU usage statistics */ - #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ - _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); - #else - the_thread->cpu_time_used = 0; - #endif + _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); /* * initialize thread's key vaule node chain |