<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-05-12)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-05-12 Joel Sherrill <joel.sherrill@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.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2818&r2=text&tr2=1.2819&diff_format=h">M</a></td><td width='1%'>1.2819</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/percpu.h.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>cpukit/score/include/rtems/score/percpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/thread.h.diff?r1=text&tr1=1.102&r2=text&tr2=1.103&diff_format=h">M</a></td><td width='1%'>1.103</td><td width='100%'>cpukit/score/include/rtems/score/thread.h</td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,11 @@
</font><font color='#000088'>+2011-05-12    Joel Sherrill <joel.sherrill@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.
+
</font> 2011-05-12        Ralf Corsépius <ralf.corsepius@rtems.org>
 
        * libnetworking/sys/ucred.h: Make self-contained.

<font color='#006600'>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
</font><font color='#997700'>@@ -24,6 +24,7 @@
</font> #ifdef ASM
   #include <rtems/asm.h>
 #else
<font color='#000088'>+  #include <rtems/score/timestamp.h>
</font>   #if defined(RTEMS_SMP)
     #include <rtems/score/smplock.h>
   #endif
<font color='#997700'>@@ -51,6 +52,8 @@
</font> #endif
 
 #ifndef ASM
<font color='#000088'>+#include <rtems/score/timestamp.h>
+
</font> #ifndef __THREAD_CONTROL_DEFINED__
 #define __THREAD_CONTROL_DEFINED__
 typedef struct Thread_Control_struct Thread_Control;
<font color='#997700'>@@ -136,6 +139,8 @@
</font>   /** This is set to true when this CPU needs to run the dispatcher. */
   volatile bool dispatch_necessary;
 
<font color='#000088'>+  /** This is the time of the last context switch on this CPU. */
+  Timestamp_Control time_of_last_context_switch;
</font> } Per_CPU_Control;
 #endif
 
<font color='#997700'>@@ -249,6 +254,11 @@
</font>   _Per_CPU_Information[bsp_smp_processor_id()].interrupt_stack_high
 #define _Thread_Dispatch_necessary \
   _Per_CPU_Information[bsp_smp_processor_id()].dispatch_necessary
<font color='#000088'>+#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
+
</font> 
 #endif  /* ASM */
 

<font color='#006600'>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
</font><font color='#997700'>@@ -492,16 +492,6 @@
</font>  */
 SCORE_EXTERN struct _reent **_Thread_libc_reent;
 
<font color='#880000'>-#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
</font> 
 /**
  *  This routine performs the initialization necessary for this handler.
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-05-12 Joel Sherrill <joel.sherrilL@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.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2819&r2=text&tr2=1.2820&diff_format=h">M</a></td><td width='1%'>1.2820</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/schedulersimple.h.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>cpukit/score/include/rtems/score/schedulersimple.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/inline/rtems/score/schedulersimple.inl.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>cpukit/score/inline/rtems/score/schedulersimple.inl</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/schedulersimpleenqueue.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>cpukit/score/src/schedulersimpleenqueue.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/schedulersimpleenqueuefirst.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>cpukit/score/src/schedulersimpleenqueuefirst.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/schedulersimplereadyqueueenqueue.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>cpukit/score/src/schedulersimplereadyqueueenqueue.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/schedulersimpleunblock.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>cpukit/score/src/schedulersimpleunblock.c</td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2011-05-12    Joel Sherrill <joel.sherrilL@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.
+
</font> 2011-05-12        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        PR 1788/cpukit

<font color='#006600'>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
</font><font color='#997700'>@@ -162,26 +162,26 @@
</font> );
 
 /**
<font color='#880000'>- *  _Scheduler_simple_Ready_queue_Enqueue
</font><font color='#000088'>+ *  _Scheduler_simple_Ready_queue_enqueue
</font>  *
  *  This routine puts @a the_thread on the ready queue
  *  at the end of its priority group.
  *<span style="background-color: #FF0000">  </span>
  *  @param[in] the_thread - pointer to a thread control block
  */
<font color='#880000'>-void _Scheduler_simple_Ready_queue_Enqueue(
</font><font color='#000088'>+void _Scheduler_simple_Ready_queue_enqueue(
</font>   Thread_Control    *the_thread
 );
 
 /**
<font color='#880000'>- *  _Scheduler_simple_Ready_queue_Enqueue_first
</font><font color='#000088'>+ *  _Scheduler_simple_Ready_queue_enqueue_first
</font>  *
  *  This routine puts @a the_thread on to the ready queue
  *  at the beginning of its priority group.
  *<span style="background-color: #FF0000">  </span>
  *  @param[in] the_thread - pointer to a thread control block
  */
<font color='#880000'>-void _Scheduler_simple_Ready_queue_Enqueue_first(
</font><font color='#000088'>+void _Scheduler_simple_Ready_queue_enqueue_first(
</font>   Thread_Control    *the_thread
 );
 

<font color='#006600'>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
</font><font color='#997700'>@@ -44,7 +44,7 @@
</font>   _Chain_Extract_unprotected( &the_thread->Object.Node );
 
   /* enqueue */
<font color='#880000'>-  _Scheduler_simple_Ready_queue_Enqueue( the_thread );
</font><font color='#000088'>+  _Scheduler_simple_Ready_queue_enqueue( the_thread );
</font> }
 
 /**@}*/

<font color='#006600'>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
</font><font color='#997700'>@@ -25,5 +25,5 @@
</font>   Thread_Control            *the_thread
 )
 {
<font color='#880000'>-  _Scheduler_simple_Ready_queue_Enqueue( the_thread );
</font><font color='#000088'>+  _Scheduler_simple_Ready_queue_enqueue( the_thread );
</font> }

<font color='#006600'>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
</font><font color='#997700'>@@ -24,5 +24,5 @@
</font>   Thread_Control            *the_thread
 )
 {
<font color='#880000'>-  _Scheduler_simple_Ready_queue_Enqueue_first( the_thread );
</font><font color='#000088'>+  _Scheduler_simple_Ready_queue_enqueue_first( the_thread );
</font> }

<font color='#006600'>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
</font><font color='#997700'>@@ -21,7 +21,7 @@
</font> #include <rtems/score/thread.h>
 #include <rtems/score/schedulersimple.h>
 
<font color='#880000'>-void _Scheduler_simple_Ready_queue_Enqueue(
</font><font color='#000088'>+void _Scheduler_simple_Ready_queue_enqueue(
</font>   Thread_Control    *the_thread
 )
 {

<font color='#006600'>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
</font><font color='#997700'>@@ -20,7 +20,7 @@
</font> #include <rtems/score/thread.h>
 #include <rtems/score/schedulersimple.h>
 
<font color='#880000'>-void _Scheduler_simple_Ready_queue_Enqueue_first(
</font><font color='#000088'>+void _Scheduler_simple_Ready_queue_enqueue_first(
</font>   Thread_Control    *the_thread
 )
 {

<font color='#006600'>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
</font><font color='#997700'>@@ -24,7 +24,7 @@
</font>   Thread_Control    *the_thread
 )
 {
<font color='#880000'>-  _Scheduler_simple_Ready_queue_Enqueue(the_thread);
</font><font color='#000088'>+  _Scheduler_simple_Ready_queue_enqueue(the_thread);
</font> 
   /*
    *  If the thread that was unblocked is more important than the heir,
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>