This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 75d0312b4c sched/init/nx_start.c: Fix typo and format
75d0312b4c is described below
commit 75d0312b4cd61b87fc5d397d11c999d1e83ace92
Author: tjwu1217 <[email protected]>
AuthorDate: Mon Jul 3 11:24:13 2023 +0000
sched/init/nx_start.c: Fix typo and format
---
sched/init/nx_start.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/sched/init/nx_start.c b/sched/init/nx_start.c
index 9bb37f965c..0e18e83496 100644
--- a/sched/init/nx_start.c
+++ b/sched/init/nx_start.c
@@ -154,7 +154,7 @@ dq_queue_t g_waitingforfill;
dq_queue_t g_stoppedtasks;
#endif
-/* This the list of all tasks that have been initialized, but not yet
+/* This list of all tasks that have been initialized, but not yet
* activated. NOTE: This is the only list that is not prioritized.
*/
@@ -174,9 +174,9 @@ volatile pid_t g_lastpid;
FAR struct tcb_s **g_pidhash;
volatile int g_npidhash;
-/* This is a table of task lists. This table is indexed by the task stat
+/* This is a table of task lists. This table is indexed by the task state
* enumeration type (tstate_t) and provides a pointer to the associated
- * static task list (if there is one) as well as a a set of attribute flags
+ * static task list (if there is one) as well as a set of attribute flags
* indicating properties of the list, for example, if the list is an
* ordered list or not.
*/
@@ -277,16 +277,16 @@ static struct task_tcb_s g_idletcb[CONFIG_SMP_NCPUS];
/* This is the name of the idle task */
#if CONFIG_TASK_NAME_SIZE <= 0 || !defined(CONFIG_SMP)
-#ifdef CONFIG_SMP
+# ifdef CONFIG_SMP
static const char g_idlename[] = "CPU Idle";
-#else
+# else
static const char g_idlename[] = "Idle Task";
-#endif
+# endif
#endif
-/* This the IDLE idle threads argument list. NOTE: Normally the argument
+/* This is IDLE threads argument list. NOTE: Normally the argument
* list is created on the stack prior to starting the task. We have to
- * do things s little differently here for the IDLE tasks.
+ * do things little differently here for the IDLE tasks.
*/
static FAR char *g_idleargv[CONFIG_SMP_NCPUS][2];
@@ -301,7 +301,7 @@ static FAR char *g_idleargv[CONFIG_SMP_NCPUS][2];
* Description:
* This function is called to initialize the operating system and to spawn
* the user initialization thread of execution. This is the initial entry
- * point into NuttX
+ * point into NuttX.
*
* Input Parameters:
* None