change log for rtems (2010-06-24)
rtems-vc at rtems.org
rtems-vc at rtems.org
Thu Jun 24 23:12:11 UTC 2010
*joel*:
2010-06-24 Gedare Bloom <giddyup44 at yahoo.com>
PR 1589/cpukit
* score/Makefile.am, score/include/rtems/score/thread.h,
score/inline/rtems/score/thread.inl: Make _Thread_Evaluate_mode() an
inline method. It is only used in one place and relatively simple.
* score/src/threadevaluatemode.c: Removed.
M 1.2463 cpukit/ChangeLog
M 1.83 cpukit/score/Makefile.am
M 1.95 cpukit/score/include/rtems/score/thread.h
M 1.40 cpukit/score/inline/rtems/score/thread.inl
R 1.6 cpukit/score/src/threadevaluatemode.c
diff -u rtems/cpukit/ChangeLog:1.2462 rtems/cpukit/ChangeLog:1.2463
--- rtems/cpukit/ChangeLog:1.2462 Thu Jun 24 17:01:49 2010
+++ rtems/cpukit/ChangeLog Thu Jun 24 17:40:30 2010
@@ -1,3 +1,11 @@
+2010-06-24 Gedare Bloom <giddyup44 at yahoo.com>
+
+ PR 1589/cpukit
+ * score/Makefile.am, score/include/rtems/score/thread.h,
+ score/inline/rtems/score/thread.inl: Make _Thread_Evaluate_mode() an
+ inline method. It is only used in one place and relatively simple.
+ * score/src/threadevaluatemode.c: Removed.
+
2010-06-24 Joel Sherrill <joel.sherrilL at OARcorp.com>
* libfs/src/imfs/memfile.c: Fix assert.
diff -u rtems/cpukit/score/Makefile.am:1.82 rtems/cpukit/score/Makefile.am:1.83
--- rtems/cpukit/score/Makefile.am:1.82 Thu Jun 24 16:27:30 2010
+++ rtems/cpukit/score/Makefile.am Thu Jun 24 17:40:32 2010
@@ -141,7 +141,7 @@
## THREAD_C_FILES
libscore_a_SOURCES += src/thread.c src/threadchangepriority.c \
src/threadclearstate.c src/threadclose.c src/threadcreateidle.c \
- src/threaddelayended.c src/threaddispatch.c src/threadevaluatemode.c \
+ 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 \
diff -u rtems/cpukit/score/include/rtems/score/thread.h:1.94 rtems/cpukit/score/include/rtems/score/thread.h:1.95
--- rtems/cpukit/score/include/rtems/score/thread.h:1.94 Thu Jun 24 16:27:30 2010
+++ rtems/cpukit/score/include/rtems/score/thread.h Thu Jun 24 17:40:32 2010
@@ -749,14 +749,6 @@
bool force
);
-/**
- * This routine evaluates the current scheduling information for the
- * system and determines if a context switch is required. This
- * is usually called after changing an execution mode such as preemptability
- * for a thread.
- */
-bool _Thread_Evaluate_mode( void );
-
#if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE)
/**
* This routine is the body of the system idle thread.
diff -u rtems/cpukit/score/inline/rtems/score/thread.inl:1.39 rtems/cpukit/score/inline/rtems/score/thread.inl:1.40
--- rtems/cpukit/score/inline/rtems/score/thread.inl:1.39 Mon Nov 23 14:07:04 2009
+++ rtems/cpukit/score/inline/rtems/score/thread.inl Thu Jun 24 17:40:32 2010
@@ -332,6 +332,27 @@
_Thread_libc_reent = libc_reent;
}
+/**
+ * This routine evaluates the current scheduling information for the
+ * system and determines if a context switch is required. This
+ * is usually called after changing an execution mode such as preemptability
+ * for a thread.
+ */
+RTEMS_INLINE_ROUTINE bool _Thread_Evaluate_mode( void )
+{
+ Thread_Control *executing;
+
+ executing = _Thread_Executing;
+
+ if ( !_States_Is_ready( executing->current_state ) ||
+ ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
+ _Context_Switch_necessary = true;
+ return true;
+ }
+
+ return false;
+}
+
/**@}*/
#endif
--
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/20100624/c35ada7c/attachment-0001.html>
More information about the vc
mailing list