<!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 (2010-06-24)</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>2010-06-24 Gedare Bloom <giddyup44@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.
</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.2462&r2=text&tr2=1.2463&diff_format=h">M</a></td><td width='1%'>1.2463</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/Makefile.am.diff?r1=text&tr1=1.82&r2=text&tr2=1.83&diff_format=h">M</a></td><td width='1%'>1.83</td><td width='100%'>cpukit/score/Makefile.am</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.94&r2=text&tr2=1.95&diff_format=h">M</a></td><td width='1%'>1.95</td><td width='100%'>cpukit/score/include/rtems/score/thread.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/inline/rtems/score/thread.inl.diff?r1=text&tr1=1.39&r2=text&tr2=1.40&diff_format=h">M</a></td><td width='1%'>1.40</td><td width='100%'>cpukit/score/inline/rtems/score/thread.inl</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/threadevaluatemode.c?rev=1.6&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.6</font></td><td width='100%'><font color="#880000">cpukit/score/src/threadevaluatemode.c</font></td></tr>
</table>
<pre>
<font color='#006600'>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
</font><font color='#997700'>@@ -1,3 +1,11 @@
</font><font color='#000088'>+2010-06-24 Gedare Bloom <giddyup44@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.
+
</font> 2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libfs/src/imfs/memfile.c: Fix assert.
<font color='#006600'>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
</font><font color='#997700'>@@ -141,7 +141,7 @@
</font> ## THREAD_C_FILES
libscore_a_SOURCES += src/thread.c src/threadchangepriority.c \
src/threadclearstate.c src/threadclose.c src/threadcreateidle.c \
<font color='#880000'>- src/threaddelayended.c src/threaddispatch.c src/threadevaluatemode.c \
</font><font color='#000088'>+ src/threaddelayended.c src/threaddispatch.c \
</font> 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 \
<font color='#006600'>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
</font><font color='#997700'>@@ -749,14 +749,6 @@
</font> bool force
);
<font color='#880000'>-/**
- * 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 );
-
</font> #if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE)
/**
* This routine is the body of the system idle thread.
<font color='#006600'>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
</font><font color='#997700'>@@ -332,6 +332,27 @@
</font> _Thread_libc_reent = libc_reent;
}
<font color='#000088'>+/**
+ * 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;
+}
+
</font> /**@}*/
#endif
</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>