diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-02 13:24:20 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-02 13:24:20 -0500 |
commit | 9e735966107650193081539058f2ec78694b3506 (patch) | |
tree | 2ae2738b653bd0509a2aaa8924222355d773cdc7 | |
parent | score/tod.h: Fix formatting (diff) | |
download | rtems-9e735966107650193081539058f2ec78694b3506.tar.bz2 |
score/percpu.h: _Thread_Time_of_last_context_switch always available
This field is used whether ticks are used for statistics or not.
-rw-r--r-- | cpukit/score/include/rtems/score/percpu.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h index ed6e6b2b72..50dd2e6817 100644 --- a/cpukit/score/include/rtems/score/percpu.h +++ b/cpukit/score/include/rtems/score/percpu.h @@ -260,11 +260,8 @@ void _Per_CPU_Initialize(void); _Per_CPU_Information[bsp_smp_processor_id()].interrupt_stack_high #define _Thread_Dispatch_necessary \ _Per_CPU_Information[bsp_smp_processor_id()].dispatch_necessary -#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ - #define _Thread_Time_of_last_context_switch \ - _Per_CPU_Information[bsp_smp_processor_id()].time_of_last_context_switch -#endif - +#define _Thread_Time_of_last_context_switch \ + _Per_CPU_Information[bsp_smp_processor_id()].time_of_last_context_switch #endif /* ASM */ |