change log for rtems (2011-03-15)

rtems-vc at rtems.org rtems-vc at rtems.org
Tue Mar 15 20:10:31 UTC 2011


 *joel*:
2011-03-15	Joel Sherrill <joel.sherrill at oarcorp.com>

	* rtems/src/taskresume.c, score/Makefile.am,
	score/include/rtems/score/thread.h: Convert _Thread_Resume and
	_Thread_Suspend into macros.
	* score/src/threadresume.c, score/src/threadsuspend.c: Removed.

M 1.2782  cpukit/ChangeLog
M   1.11  cpukit/rtems/src/taskresume.c
M   1.92  cpukit/score/Makefile.am
M  1.100  cpukit/score/include/rtems/score/thread.h
R   1.15  cpukit/score/src/threadresume.c
R   1.12  cpukit/score/src/threadsuspend.c

diff -u rtems/cpukit/ChangeLog:1.2781 rtems/cpukit/ChangeLog:1.2782
--- rtems/cpukit/ChangeLog:1.2781	Tue Mar 15 14:03:38 2011
+++ rtems/cpukit/ChangeLog	Tue Mar 15 14:27:45 2011
@@ -1,5 +1,12 @@
 2011-03-15	Joel Sherrill <joel.sherrill at oarcorp.com>
 
+	* rtems/src/taskresume.c, score/Makefile.am,
+	score/include/rtems/score/thread.h: Convert _Thread_Resume and
+	_Thread_Suspend into macros.
+	* score/src/threadresume.c, score/src/threadsuspend.c: Removed.
+
+2011-03-15	Joel Sherrill <joel.sherrill at oarcorp.com>
+
 	* libmisc/cpuuse/cpuusagereport.c: Make compile again.
 
 2011-03-15	Joel Sherrill <joel.sherrill at oarcorp.com>

diff -u rtems/cpukit/rtems/src/taskresume.c:1.10 rtems/cpukit/rtems/src/taskresume.c:1.11
--- rtems/cpukit/rtems/src/taskresume.c:1.10	Tue Dec 15 12:26:41 2009
+++ rtems/cpukit/rtems/src/taskresume.c	Tue Mar 15 14:27:46 2011
@@ -59,7 +59,7 @@
 
     case OBJECTS_LOCAL:
       if ( _States_Is_suspended( the_thread->current_state ) ) {
-        _Thread_Resume( the_thread, true );
+        _Thread_Resume( the_thread );
         _Thread_Enable_dispatch();
         return RTEMS_SUCCESSFUL;
       }

diff -u rtems/cpukit/score/Makefile.am:1.91 rtems/cpukit/score/Makefile.am:1.92
--- rtems/cpukit/score/Makefile.am:1.91	Fri Feb 18 09:12:43 2011
+++ rtems/cpukit/score/Makefile.am	Tue Mar 15 14:27:46 2011
@@ -167,11 +167,10 @@
     src/threaddelayended.c src/threaddispatch.c \
     src/threadget.c src/threadhandler.c src/threadinitialize.c \
     src/threadloadenv.c src/threadready.c src/threadreset.c \
-    src/threadrestart.c src/threadresume.c src/threadsetpriority.c \
+    src/threadrestart.c src/threadsetpriority.c \
     src/threadsetstate.c src/threadsettransient.c \
     src/threadstackallocate.c src/threadstackfree.c src/threadstart.c \
-    src/threadstartmultitasking.c src/threadsuspend.c \
-    src/threadtickletimeslice.c \
+    src/threadstartmultitasking.c src/threadtickletimeslice.c \
     src/iterateoverthreads.c src/threadblockingoperationcancel.c
 
 ## THREADQ_C_FILES

diff -u rtems/cpukit/score/include/rtems/score/thread.h:1.99 rtems/cpukit/score/include/rtems/score/thread.h:1.100
--- rtems/cpukit/score/include/rtems/score/thread.h:1.99	Fri Feb 18 09:12:43 2011
+++ rtems/cpukit/score/include/rtems/score/thread.h	Tue Mar 15 14:27:46 2011
@@ -697,19 +697,16 @@
  *  This routine updates the related suspend fields in the_thread
  *  control block to indicate the current nested level.
  */
-void _Thread_Suspend(
-  Thread_Control   *the_thread
-);
+#define _Thread_Suspend( _the_thread ) \
+        _Thread_Set_state( _the_thread, STATES_SUSPENDED )
 
 /**
  *  This routine updates the related suspend fields in the_thread
  *  control block to indicate the current nested level.  A force
  *  parameter of true will force a resume and clear the suspend count.
  */
-void _Thread_Resume(
-  Thread_Control   *the_thread,
-  bool              force
-);
+#define _Thread_Resume( _the_thread ) \
+        _Thread_Clear_state( _the_thread, STATES_SUSPENDED )
 
 #if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE)
 /**



--

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/20110315/4258f61e/attachment-0001.html>


More information about the vc mailing list