<div dir="ltr">What about the cost of stacking an argument which is not used often? <div>Just wondering...</div><div><br></div><div>--Wendell</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/12 Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 2013-08-12 16:11, Gedare Bloom wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Aug 9, 2013 at 2:35 AM, Sebastian Huber<br>
<<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-<u></u>brains.de</a>> wrote:<br>
<snip><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
@@ -59,10 +60,12 @@ void _Scheduler_Handler_<u></u>initialization( void );<br>
*<br>
* This kernel routine implements the scheduling decision logic for<br>
* the scheduler. It does NOT dispatch.<br>
+ *<br>
+ * @param[in] thread The thread which state changed previously.<br>
*/<br>
-RTEMS_INLINE_ROUTINE void _Scheduler_Schedule( void )<br>
+RTEMS_INLINE_ROUTINE void _Scheduler_Schedule( Thread_Control *thread )<br>
{<br>
- _Scheduler.Operations.<u></u>schedule();<br>
+ _Scheduler.Operations.<u></u>schedule( thread );<br>
}<br>
<br>
</blockquote>
Can this "thread" parameter be used to "Update" the per-thread<br>
scheduler metadata and obviate the call to _Scheduler_Update?<br>
<br>
-Gedare<br>
<br>
</blockquote>
<br></div>
An optimized version of the current scheduler will use this thread parameter to get some state information.<div class="im HOEnZb"><br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone : <a href="tel:%2B49%2089%20189%2047%2041-16" value="+4989189474116" target="_blank">+49 89 189 47 41-16</a><br>
Fax : <a href="tel:%2B49%2089%20189%2047%2041-09" value="+4989189474109" target="_blank">+49 89 189 47 41-09</a><br>
E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-<u></u>brains.de</a><br>
PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
rtems-devel mailing list<br>
<a href="mailto:rtems-devel@rtems.org" target="_blank">rtems-devel@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-devel" target="_blank">http://www.rtems.org/mailman/<u></u>listinfo/rtems-devel</a><br>
</div></div></blockquote></div><br></div>