<div dir="ltr">Hey Sebastian,<div><br></div><div>I've been working closely with Gedare over the summer and with his help, I have a working G-EDF scheduler running now. I will send out the patches on the devel list pretty soon, once I verify the operations of the scheduler.</div>
<div><br></div><div>Thanks,<br>Sree</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Sep 14, 2013 at 12:06 PM, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 2013-09-14 17:51, Sree Harsha Konduri wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I am working on the globaledf scheduler and need to lock the ready queue.<br>
I've implemented the locking using CPU_SMP_lock_Control data structure in<br>
i386.<br>
</blockquote>
<br></div>
Since we currently have only the Giant lock it is unnecessary to use other locking mechanisms. The introduction of fine grained locking will be a major task.<br>
<br>
For a G-EDF scheduler please have a look at:<br>
<br>
<a href="http://git.rtems.org/rtems/tree/cpukit/score/include/rtems/score/schedulersmpimpl.h" target="_blank">http://git.rtems.org/rtems/<u></u>tree/cpukit/score/include/<u></u>rtems/score/schedulersmpimpl.h</a><br>
<br>
<a href="http://git.rtems.org/rtems/tree/cpukit/score/include/rtems/score/schedulerprioritysmp.h" target="_blank">http://git.rtems.org/rtems/<u></u>tree/cpukit/score/include/<u></u>rtems/score/<u></u>schedulerprioritysmp.h</a><br>
<br>
If you use this framework it should be pretty easy to implement a G-EDF scheduler. You only have to replace the priority queue with the red-black tree operations.<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I just want to make sure that locking in such way will ensure mutual<br>
exclusion to operations of the ready queue.<br>
<br>
Thanks,<br>
Sree<br>
<br>
</blockquote>
<br>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <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>
<br>
</font></span></blockquote></div><br></div>