Re: Low level design description for _Scheduler_strong_APA_Get_lowest_scheduled

2020-08-07 Thread Richi Dubey
Thank you for the feedback. * put different contributors' copyrights on different lines Okay. * it may be worth adding some high-level comment blocks about each > piece of _Scheduler_strong_APA_Get_lowest_scheduled() . I also > suggest that you try to refactor this function into a few subroutin

Re: Low level design description for _Scheduler_strong_APA_Get_lowest_scheduled

2020-08-07 Thread Gedare Bloom
On Fri, Aug 7, 2020 at 3:51 AM Richi Dubey wrote: > > Hi, > >> I have a question about: "scenario where all the nodes that we go >> through have a higher priority (less priority number) than our >> filter_node(the node to schedule) in which case, we would be returning >> ret: the minimum priority

Re: Low level design description for _Scheduler_strong_APA_Get_lowest_scheduled

2020-08-07 Thread Richi Dubey
Hi, I have a question about: "scenario where all the nodes that we go > through have a higher priority (less priority number) than our > filter_node(the node to schedule) in which case, we would be returning > ret: the minimum priority node encountered but there would be no > preemptions and filte

Re: Low level design description for _Scheduler_strong_APA_Get_lowest_scheduled

2020-08-06 Thread Gedare Bloom
Hi Richi, I have a question about: "scenario where all the nodes that we go through have a higher priority (less priority number) than our filter_node(the node to schedule) in which case, we would be returning ret: the minimum priority node encountered but there would be no preemptions and filter_

Re: Low level design description for _Scheduler_strong_APA_Get_lowest_scheduled

2020-08-06 Thread Richi Dubey
The part 3 corresponding to the backtracking changes the filter_node pointer (the original node pointer passed to the function) and calls the Scheduler_SMP_Preempt, all of which is documented in the blog post. I feel like this might mean that the file is taking a higher-level role that it is suppos

Low level design description for _Scheduler_strong_APA_Get_lowest_scheduled

2020-08-06 Thread Richi Dubey
Hi, Please find the blog post- https://rtemswithrichi.wordpress.com/strong-apa-low-level-design-in-rtems/ that explains the low-level design for get_lowest_function, importance of which was explained in the earlier high-level design description mail