include/nuttx/sched.h: Make naming of all internal names consistent:

1. Add internal scheduler functions should begin with nxsched_, not sched_
2. Follow the consistent naming patter of https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+OS+Internal+Functions
This commit is contained in:
Gregory Nutt
2020-05-09 08:04:45 -06:00
committed by Alan Carvalho de Assis
parent 8b289023bf
commit a4218e2144
223 changed files with 604 additions and 604 deletions
+3 -3
View File
@@ -98,7 +98,7 @@ void up_block_task(FAR struct tcb_s *tcb, tstate_t task_state)
{
/* Update scheduler parameters */
sched_suspend_scheduler(rtcb);
nxsched_suspend_scheduler(rtcb);
/* Are we in an interrupt handler? */
@@ -118,7 +118,7 @@ void up_block_task(FAR struct tcb_s *tcb, tstate_t task_state)
/* Reset scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then setup so that the context will be performed on exit
* from the interrupt. Any necessary address environment
@@ -152,7 +152,7 @@ void up_block_task(FAR struct tcb_s *tcb, tstate_t task_state)
#endif
/* Reset scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then switch contexts */
+3 -3
View File
@@ -139,12 +139,12 @@ void _exit(int status)
#ifdef CONFIG_DUMP_ON_EXIT
sinfo("Other tasks:\n");
sched_foreach(_up_dumponexit, NULL);
nxsched_foreach(_up_dumponexit, NULL);
#endif
/* Update scheduler parameters */
sched_suspend_scheduler(tcb);
nxsched_suspend_scheduler(tcb);
/* Destroy the task at the head of the ready to run list. */
@@ -169,7 +169,7 @@ void _exit(int status)
/* Reset scheduler parameters */
sched_resume_scheduler(tcb);
nxsched_resume_scheduler(tcb);
/* Then switch contexts */
+3 -3
View File
@@ -67,7 +67,7 @@ void up_release_pending(void)
* Update scheduler parameters.
*/
sched_suspend_scheduler(rtcb);
nxsched_suspend_scheduler(rtcb);
/* Are we operating in interrupt context? */
@@ -87,7 +87,7 @@ void up_release_pending(void)
/* Update scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then setup so that the context will be performed on exit
* from the interrupt. Any necessary address environment
@@ -122,7 +122,7 @@ void up_release_pending(void)
#endif
/* Update scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then switch contexts */
+3 -3
View File
@@ -122,7 +122,7 @@ void up_reprioritize_rtr(FAR struct tcb_s *tcb, uint8_t priority)
/* Update scheduler parameters */
sched_suspend_scheduler(rtcb);
nxsched_suspend_scheduler(rtcb);
/* Are we in an interrupt handler? */
@@ -142,7 +142,7 @@ void up_reprioritize_rtr(FAR struct tcb_s *tcb, uint8_t priority)
/* Update scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then setup so that the context will be performed on exit
* from the interrupt. Any necessary address environment
@@ -177,7 +177,7 @@ void up_reprioritize_rtr(FAR struct tcb_s *tcb, uint8_t priority)
#endif
/* Update scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then switch contexts */
+3 -3
View File
@@ -84,7 +84,7 @@ void up_unblock_task(FAR struct tcb_s *tcb)
/* Update scheduler parameters */
sched_suspend_scheduler(rtcb);
nxsched_suspend_scheduler(rtcb);
/* Are we in an interrupt handler? */
@@ -104,7 +104,7 @@ void up_unblock_task(FAR struct tcb_s *tcb)
/* Update scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then setup so that the context will be performed on exit
* from the interrupt. Any necessary address environment
@@ -140,7 +140,7 @@ void up_unblock_task(FAR struct tcb_s *tcb)
#endif
/* Update scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then switch contexts */