change log for rtems (2011-05-12)

rtems-vc at rtems.org rtems-vc at rtems.org
Thu May 12 14:10:44 UTC 2011


 *joel*:
2011-05-12	Joel Sherrill <joel.sherrill at oarcorp.com>

	PR 1788/cpukit
	* score/include/rtems/score/percpu.h,
	score/include/rtems/score/thread.h: Make time of last context switch
	part of per cpu information since each core has a different context
	switch to track.

M 1.2819  cpukit/ChangeLog
M    1.7  cpukit/score/include/rtems/score/percpu.h
M  1.103  cpukit/score/include/rtems/score/thread.h

diff -u rtems/cpukit/ChangeLog:1.2818 rtems/cpukit/ChangeLog:1.2819
--- rtems/cpukit/ChangeLog:1.2818	Wed May 11 23:12:41 2011
+++ rtems/cpukit/ChangeLog	Thu May 12 08:23:12 2011
@@ -1,3 +1,11 @@
+2011-05-12	Joel Sherrill <joel.sherrill at oarcorp.com>
+
+	PR 1788/cpukit
+	* score/include/rtems/score/percpu.h,
+	score/include/rtems/score/thread.h: Make time of last context switch
+	part of per cpu information since each core has a different context
+	switch to track.
+
 2011-05-12	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* libnetworking/sys/ucred.h: Make self-contained.

diff -u rtems/cpukit/score/include/rtems/score/percpu.h:1.6 rtems/cpukit/score/include/rtems/score/percpu.h:1.7
--- rtems/cpukit/score/include/rtems/score/percpu.h:1.6	Wed May 11 09:22:35 2011
+++ rtems/cpukit/score/include/rtems/score/percpu.h	Thu May 12 08:23:12 2011
@@ -24,6 +24,7 @@
 #ifdef ASM
   #include <rtems/asm.h>
 #else
+  #include <rtems/score/timestamp.h>
   #if defined(RTEMS_SMP)
     #include <rtems/score/smplock.h>
   #endif
@@ -51,6 +52,8 @@
 #endif
 
 #ifndef ASM
+#include <rtems/score/timestamp.h>
+
 #ifndef __THREAD_CONTROL_DEFINED__
 #define __THREAD_CONTROL_DEFINED__
 typedef struct Thread_Control_struct Thread_Control;
@@ -136,6 +139,8 @@
   /** This is set to true when this CPU needs to run the dispatcher. */
   volatile bool dispatch_necessary;
 
+  /** This is the time of the last context switch on this CPU. */
+  Timestamp_Control time_of_last_context_switch;
 } Per_CPU_Control;
 #endif
 
@@ -249,6 +254,11 @@
   _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
+
 
 #endif  /* ASM */
 

diff -u rtems/cpukit/score/include/rtems/score/thread.h:1.102 rtems/cpukit/score/include/rtems/score/thread.h:1.103
--- rtems/cpukit/score/include/rtems/score/thread.h:1.102	Fri Apr 22 12:54:31 2011
+++ rtems/cpukit/score/include/rtems/score/thread.h	Thu May 12 08:23:12 2011
@@ -492,16 +492,6 @@
  */
 SCORE_EXTERN struct _reent **_Thread_libc_reent;
 
-#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
-
-  /**
-   * This contains the time since boot when the last context switch occurred.
-   * By placing it in the BSS, it will automatically be zeroed out at
-   * system initialization and does not need to be known outside this
-   * file.
-   */
-  SCORE_EXTERN Timestamp_Control _Thread_Time_of_last_context_switch;
-#endif
 
 /**
  *  This routine performs the initialization necessary for this handler.


 *joel*:
2011-05-12	Joel Sherrill <joel.sherrilL at OARcorp.com>

	* score/include/rtems/score/schedulersimple.h,
	score/inline/rtems/score/schedulersimple.inl,
	score/src/schedulersimpleenqueue.c,
	score/src/schedulersimpleenqueuefirst.c,
	score/src/schedulersimplereadyqueueenqueue.c,
	score/src/schedulersimplereadyqueueenqueuefirst.c,
	score/src/schedulersimpleunblock.c: Correct names as pointed out by
	Gedare.

M 1.2820  cpukit/ChangeLog
M    1.2  cpukit/score/include/rtems/score/schedulersimple.h
M    1.2  cpukit/score/inline/rtems/score/schedulersimple.inl
M    1.2  cpukit/score/src/schedulersimpleenqueue.c
M    1.2  cpukit/score/src/schedulersimpleenqueuefirst.c
M    1.2  cpukit/score/src/schedulersimplereadyqueueenqueue.c
M    1.2  cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c
M    1.2  cpukit/score/src/schedulersimpleunblock.c

diff -u rtems/cpukit/ChangeLog:1.2819 rtems/cpukit/ChangeLog:1.2820
--- rtems/cpukit/ChangeLog:1.2819	Thu May 12 08:23:12 2011
+++ rtems/cpukit/ChangeLog	Thu May 12 08:54:29 2011
@@ -1,3 +1,14 @@
+2011-05-12	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+	* score/include/rtems/score/schedulersimple.h,
+	score/inline/rtems/score/schedulersimple.inl,
+	score/src/schedulersimpleenqueue.c,
+	score/src/schedulersimpleenqueuefirst.c,
+	score/src/schedulersimplereadyqueueenqueue.c,
+	score/src/schedulersimplereadyqueueenqueuefirst.c,
+	score/src/schedulersimpleunblock.c: Correct names as pointed out by
+	Gedare.
+
 2011-05-12	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	PR 1788/cpukit

diff -u rtems/cpukit/score/include/rtems/score/schedulersimple.h:1.1 rtems/cpukit/score/include/rtems/score/schedulersimple.h:1.2
--- rtems/cpukit/score/include/rtems/score/schedulersimple.h:1.1	Wed Mar 16 11:32:21 2011
+++ rtems/cpukit/score/include/rtems/score/schedulersimple.h	Thu May 12 08:54:30 2011
@@ -162,26 +162,26 @@
 );
 
 /**
- *  _Scheduler_simple_Ready_queue_Enqueue
+ *  _Scheduler_simple_Ready_queue_enqueue
  *
  *  This routine puts @a the_thread on the ready queue
  *  at the end of its priority group.
  *  
  *  @param[in] the_thread - pointer to a thread control block
  */
-void _Scheduler_simple_Ready_queue_Enqueue(
+void _Scheduler_simple_Ready_queue_enqueue(
   Thread_Control    *the_thread
 );
 
 /**
- *  _Scheduler_simple_Ready_queue_Enqueue_first
+ *  _Scheduler_simple_Ready_queue_enqueue_first
  *
  *  This routine puts @a the_thread on to the ready queue
  *  at the beginning of its priority group.
  *  
  *  @param[in] the_thread - pointer to a thread control block
  */
-void _Scheduler_simple_Ready_queue_Enqueue_first(
+void _Scheduler_simple_Ready_queue_enqueue_first(
   Thread_Control    *the_thread
 );
 

diff -u rtems/cpukit/score/inline/rtems/score/schedulersimple.inl:1.1 rtems/cpukit/score/inline/rtems/score/schedulersimple.inl:1.2
--- rtems/cpukit/score/inline/rtems/score/schedulersimple.inl:1.1	Wed Mar 16 11:32:21 2011
+++ rtems/cpukit/score/inline/rtems/score/schedulersimple.inl	Thu May 12 08:54:30 2011
@@ -44,7 +44,7 @@
   _Chain_Extract_unprotected( &the_thread->Object.Node );
 
   /* enqueue */
-  _Scheduler_simple_Ready_queue_Enqueue( the_thread );
+  _Scheduler_simple_Ready_queue_enqueue( the_thread );
 }
 
 /**@}*/

diff -u rtems/cpukit/score/src/schedulersimpleenqueue.c:1.1 rtems/cpukit/score/src/schedulersimpleenqueue.c:1.2
--- rtems/cpukit/score/src/schedulersimpleenqueue.c:1.1	Wed Mar 16 11:32:22 2011
+++ rtems/cpukit/score/src/schedulersimpleenqueue.c	Thu May 12 08:54:30 2011
@@ -25,5 +25,5 @@
   Thread_Control            *the_thread
 )
 {
-  _Scheduler_simple_Ready_queue_Enqueue( the_thread );
+  _Scheduler_simple_Ready_queue_enqueue( the_thread );
 }

diff -u rtems/cpukit/score/src/schedulersimpleenqueuefirst.c:1.1 rtems/cpukit/score/src/schedulersimpleenqueuefirst.c:1.2
--- rtems/cpukit/score/src/schedulersimpleenqueuefirst.c:1.1	Wed Mar 16 11:32:22 2011
+++ rtems/cpukit/score/src/schedulersimpleenqueuefirst.c	Thu May 12 08:54:30 2011
@@ -24,5 +24,5 @@
   Thread_Control            *the_thread
 )
 {
-  _Scheduler_simple_Ready_queue_Enqueue_first( the_thread );
+  _Scheduler_simple_Ready_queue_enqueue_first( the_thread );
 }

diff -u rtems/cpukit/score/src/schedulersimplereadyqueueenqueue.c:1.1 rtems/cpukit/score/src/schedulersimplereadyqueueenqueue.c:1.2
--- rtems/cpukit/score/src/schedulersimplereadyqueueenqueue.c:1.1	Wed Mar 16 11:32:22 2011
+++ rtems/cpukit/score/src/schedulersimplereadyqueueenqueue.c	Thu May 12 08:54:30 2011
@@ -21,7 +21,7 @@
 #include <rtems/score/thread.h>
 #include <rtems/score/schedulersimple.h>
 
-void _Scheduler_simple_Ready_queue_Enqueue(
+void _Scheduler_simple_Ready_queue_enqueue(
   Thread_Control    *the_thread
 )
 {

diff -u rtems/cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c:1.1 rtems/cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c:1.2
--- rtems/cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c:1.1	Wed Mar 16 11:32:22 2011
+++ rtems/cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c	Thu May 12 08:54:30 2011
@@ -20,7 +20,7 @@
 #include <rtems/score/thread.h>
 #include <rtems/score/schedulersimple.h>
 
-void _Scheduler_simple_Ready_queue_Enqueue_first(
+void _Scheduler_simple_Ready_queue_enqueue_first(
   Thread_Control    *the_thread
 )
 {

diff -u rtems/cpukit/score/src/schedulersimpleunblock.c:1.1 rtems/cpukit/score/src/schedulersimpleunblock.c:1.2
--- rtems/cpukit/score/src/schedulersimpleunblock.c:1.1	Wed Mar 16 11:32:22 2011
+++ rtems/cpukit/score/src/schedulersimpleunblock.c	Thu May 12 08:54:30 2011
@@ -24,7 +24,7 @@
   Thread_Control    *the_thread
 )
 {
-  _Scheduler_simple_Ready_queue_Enqueue(the_thread);
+  _Scheduler_simple_Ready_queue_enqueue(the_thread);
 
   /*
    *  If the thread that was unblocked is more important than the heir,



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110512/7c1d929a/attachment-0001.html>


More information about the vc mailing list