Skip to content

Conversation

@richidubey
Copy link
Owner

No description provided.

* @param thread Thread correspoding to the @node that asks for help.
* @param node node associated with @thread
*/
* @param scheduler The scheduler control instance.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra space

* Finds and returns the highest ready node present by accessing the
* _Strong_APA_Context->CPU with front and rear values.
*/

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no blank line

first_task = true;


//Assert rear < sizeof(Context->CPU)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete



//Assert rear < sizeof(Context->CPU)
_Assert( rear < CONFIGURE_MAXIMUM_PROCESSOR );
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<= ?

/*
* Highest ready is not just directly reachable from the victim cpu
* So there is need of task shifting .
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"need for" and remove space before period.

next_thread = curr_strong_node->invoker->heir;
next_node = _Thread_Scheduler_get_home_node( next_thread );

while( curr_node != lowest_reachable ) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ws

//Add it to All_nodes chain since it is now either scheduled or just ready.

//Add it to Ready chain since it is now either scheduled or just ready.
_Scheduler_strong_APA_Insert_ready(context,node,insert_priority);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ws

//Add it to All_nodes chain since it is now either scheduled or just ready.

//Add it to Ready chain since it is now either scheduled or just ready.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/* */


//Checks if the thread_CPU is in the affinity set of the node
if ( _Processor_mask_Is_set( &strong_node->Affinity, cpu_index) ) {
if ( _Processor_mask_Is_set( &strong_node->Affinity, cpu_index) ) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ws cpu_index)

_Scheduler_strong_APA_Has_ready,
_Scheduler_strong_APA_Enqueue_scheduled,
_Scheduler_strong_APA_Register_idle
_Scheduler_SMP_Do_nothing_register_idle
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since now you don't use _Scheduler_strong_APA_Register_idle you should delete its file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants