[rtems commit] score/percpu.h:

Joel Sherrill joel at rtems.org
Tue Oct 2 18:24:55 UTC 2012


  _Thread_Time_of_last_context_switch always available
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Module:    rtems
Branch:    master
Commit:    9e735966107650193081539058f2ec78694b3506
Changeset: http://git.rtems.org/rtems/commit/?id=9e735966107650193081539058f2ec78694b3506

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Tue Oct  2 13:24:20 2012 -0500

score/percpu.h: _Thread_Time_of_last_context_switch always available

This field is used whether ticks are used for statistics or not.

---

 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 ed6e6b2..50dd2e6 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 */
 




More information about the vc mailing list