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
@@ -112,7 +112,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? */
@@ -132,7 +132,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.
@@ -162,7 +162,7 @@ void up_block_task(struct tcb_s *tcb, tstate_t task_state)
#endif
/* Reset scheduler parameters */
sched_resume_scheduler(nexttcb);
nxsched_resume_scheduler(nexttcb);
/* Then switch contexts */
+3 -3
View File
@@ -148,12 +148,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. */
@@ -177,7 +177,7 @@ void _exit(int status)
/* Reset scheduler parameters */
sched_resume_scheduler(tcb);
nxsched_resume_scheduler(tcb);
/* Then switch contexts */
+3 -3
View File
@@ -83,7 +83,7 @@ void up_release_pending(void)
* Update scheduler parameters.
*/
sched_suspend_scheduler(rtcb);
nxsched_suspend_scheduler(rtcb);
/* Are we operating in interrupt context? */
@@ -103,7 +103,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.
@@ -133,7 +133,7 @@ void up_release_pending(void)
#endif
/* Update scheduler parameters */
sched_resume_scheduler(nexttcb);
nxsched_resume_scheduler(nexttcb);
/* Then switch contexts */
+3 -3
View File
@@ -136,7 +136,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? */
@@ -156,7 +156,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.
@@ -186,7 +186,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
#endif
/* Update scheduler parameters */
sched_resume_scheduler(nexttcb);
nxsched_resume_scheduler(nexttcb);
/* Then switch contexts */
+2 -2
View File
@@ -213,7 +213,7 @@ int lm32_swint(int irq, FAR void *context, FAR void *arg)
#ifdef CONFIG_BUILD_KERNEL
case SYS_syscall_return:
{
struct tcb_s *rtcb = sched_self();
struct tcb_s *rtcb = nxsched_self();
int index = (int)rtcb->xcp.nsyscalls - 1;
/* Make sure that there is a saved syscall return address. */
@@ -246,7 +246,7 @@ int lm32_swint(int irq, FAR void *context, FAR void *arg)
default:
{
#ifdef CONFIG_BUILD_KERNEL
FAR struct tcb_s *rtcb = sched_self();
FAR struct tcb_s *rtcb = nxsched_self();
int index = rtcb->xcp.nsyscalls;
/* Verify that the SYS call number is within range */
+3 -3
View File
@@ -97,7 +97,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? */
@@ -117,7 +117,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(nexttcb);
nxsched_resume_scheduler(nexttcb);
/* Then switch contexts */
+3 -3
View File
@@ -112,7 +112,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? */
@@ -132,7 +132,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.
@@ -160,7 +160,7 @@ void up_block_task(struct tcb_s *tcb, tstate_t task_state)
#endif
/* Reset scheduler parameters */
sched_resume_scheduler(nexttcb);
nxsched_resume_scheduler(nexttcb);
/* Then switch contexts */
+3 -3
View File
@@ -146,12 +146,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. */
@@ -175,7 +175,7 @@ void _exit(int status)
/* Reset scheduler parameters */
sched_resume_scheduler(tcb);
nxsched_resume_scheduler(tcb);
/* Then switch contexts */
@@ -82,7 +82,7 @@ void up_release_pending(void)
* contexts. Update scheduler parameters.
*/
sched_suspend_scheduler(rtcb);
nxsched_suspend_scheduler(rtcb);
/* Are we operating in interrupt context? */
@@ -102,7 +102,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.
@@ -132,7 +132,7 @@ void up_release_pending(void)
#endif
/* Update scheduler parameters */
sched_resume_scheduler(nexttcb);
nxsched_resume_scheduler(nexttcb);
/* Then switch contexts */
@@ -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.
@@ -184,7 +184,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
#endif
/* Update scheduler parameters */
sched_resume_scheduler(nexttcb);
nxsched_resume_scheduler(nexttcb);
/* Then switch contexts */
+2 -2
View File
@@ -200,7 +200,7 @@ int minerva_swint(int irq, FAR void *context, FAR void *arg)
#ifdef CONFIG_BUILD_KERNEL
case SYS_syscall_return:
{
struct tcb_s *rtcb = sched_self();
struct tcb_s *rtcb = nxsched_self();
int index = (int)rtcb->xcp.nsyscalls - 1;
/* Make sure that there is a saved syscall return address. */
@@ -233,7 +233,7 @@ int minerva_swint(int irq, FAR void *context, FAR void *arg)
default:
{
#ifdef CONFIG_BUILD_KERNEL
FAR struct tcb_s *rtcb = sched_self();
FAR struct tcb_s *rtcb = nxsched_self();
int index = rtcb->xcp.nsyscalls;
/* Verify that the SYS call number is within range */
+3 -3
View File
@@ -97,7 +97,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? */
@@ -117,7 +117,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(nexttcb);
nxsched_resume_scheduler(nexttcb);
/* Then switch contexts */