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
@@ -110,7 +110,7 @@ void up_block_task(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? */
@@ -130,7 +130,7 @@ void up_block_task(struct tcb_s *tcb, tstate_t task_state)
/* Reset scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then switch contexts. Any necessary address environment
* changes will be made when the interrupt returns.
@@ -163,7 +163,7 @@ void up_block_task(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
@@ -153,12 +153,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. */
@@ -182,7 +182,7 @@ void _exit(int status)
/* Reset scheduler parameters */
sched_resume_scheduler(tcb);
nxsched_resume_scheduler(tcb);
/* Then switch contexts */
+3 -3
View File
@@ -80,7 +80,7 @@ void up_release_pending(void)
* Update scheduler parameters.
*/
sched_suspend_scheduler(rtcb);
nxsched_suspend_scheduler(rtcb);
/* Are we operating in interrupt context? */
@@ -100,7 +100,7 @@ void up_release_pending(void)
/* Update scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then switch contexts. Any necessary address environment
* changes will be made when the interrupt returns.
@@ -134,7 +134,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
@@ -134,7 +134,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
/* Update scheduler parameters */
sched_suspend_scheduler(rtcb);
nxsched_suspend_scheduler(rtcb);
/* Are we in an interrupt handler? */
@@ -154,7 +154,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
/* Update scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then switch contexts. Any necessary address environment
* changes will be made when the interrupt returns.
@@ -187,7 +187,7 @@ void up_reprioritize_rtr(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
@@ -93,7 +93,7 @@ void up_unblock_task(struct tcb_s *tcb)
/* Update scheduler parameters */
sched_suspend_scheduler(rtcb);
nxsched_suspend_scheduler(rtcb);
/* Are we in an interrupt handler? */
@@ -113,7 +113,7 @@ void up_unblock_task(struct tcb_s *tcb)
/* Update scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then switch contexts. Any necessary address environment
* changes will be made when the interrupt returns.
@@ -148,7 +148,7 @@ void up_unblock_task(struct tcb_s *tcb)
#endif
/* Update scheduler parameters */
sched_resume_scheduler(rtcb);
nxsched_resume_scheduler(rtcb);
/* Then switch contexts */