This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 6a28807cb2e54be3324bd79d692f37a727910014
Author: Petro Karashchenko <[email protected]>
AuthorDate: Wed May 17 23:06:07 2023 +0300

    include/nuttx: fix style issues in sched.h
    
    Signed-off-by: Petro Karashchenko <[email protected]>
---
 include/nuttx/sched.h | 56 +++++++++++++++++++++++++--------------------------
 1 file changed, 28 insertions(+), 28 deletions(-)

diff --git a/include/nuttx/sched.h b/include/nuttx/sched.h
index 82df2b831f..5a80e6df1e 100644
--- a/include/nuttx/sched.h
+++ b/include/nuttx/sched.h
@@ -285,10 +285,10 @@ typedef CODE void (*starthook_t)(FAR void *arg);
 struct sporadic_s;
 struct replenishment_s
 {
-  FAR struct tcb_s *tcb;            /* The parent TCB structure                
 */
-  struct wdog_s timer;              /* Timer dedicated to this interval        
 */
-  uint32_t budget;                  /* Current budget time                     
 */
-  uint8_t  flags;                   /* See SPORADIC_FLAG_* definitions         
 */
+  FAR struct tcb_s *tcb;            /* The parent TCB structure             */
+  struct wdog_s timer;              /* Timer dedicated to this interval     */
+  uint32_t budget;                  /* Current budget time                  */
+  uint8_t  flags;                   /* See SPORADIC_FLAG_* definitions      */
 };
 
 /* This structure is an allocated "plug-in" to the main TCB structure.  It is
@@ -300,14 +300,14 @@ struct replenishment_s
 
 struct sporadic_s
 {
-  bool      suspended;              /* Thread is currently suspended           
 */
-  uint8_t   hi_priority;            /* Sporadic high priority                  
 */
-  uint8_t   low_priority;           /* Sporadic low priority                   
 */
-  uint8_t   max_repl;               /* Maximum number of replenishments        
 */
-  uint8_t   nrepls;                 /* Number of active replenishments         
 */
-  uint32_t  repl_period;            /* Sporadic replenishment period           
 */
-  uint32_t  budget;                 /* Sporadic execution budget period        
 */
-  clock_t   eventtime;              /* Time thread suspended or [re-]started   
 */
+  bool      suspended;              /* Thread is currently suspended         */
+  uint8_t   hi_priority;            /* Sporadic high priority                */
+  uint8_t   low_priority;           /* Sporadic low priority                 */
+  uint8_t   max_repl;               /* Maximum number of replenishments      */
+  uint8_t   nrepls;                 /* Number of active replenishments       */
+  uint32_t  repl_period;            /* Sporadic replenishment period         */
+  uint32_t  budget;                 /* Sporadic execution budget period      */
+  clock_t   eventtime;              /* Time thread suspended or [re-]started */
 
   /* This is the last interval timer activated */
 
@@ -332,9 +332,9 @@ struct child_status_s
 {
   FAR struct child_status_s *flink;
 
-  uint8_t ch_flags;                 /* Child status:  See CHILD_FLAG_* defns   
  */
-  pid_t   ch_pid;                   /* Child task ID                           
  */
-  int     ch_status;                /* Child exit status                       
  */
+  uint8_t ch_flags;                 /* Child status:  See CHILD_FLAG_* defines 
*/
+  pid_t   ch_pid;                   /* Child task ID                           
*/
+  int     ch_status;                /* Child exit status                       
*/
 };
 #endif
 
@@ -371,14 +371,14 @@ struct dspace_s
 
 struct stackinfo_s
 {
-  size_t    adj_stack_size;              /* Stack size after adjustment        
 */
-                                         /* for hardware, processor, etc.      
 */
-                                         /* (for debug purposes only)          
 */
-  FAR void *stack_alloc_ptr;             /* Pointer to allocated stack         
 */
-                                         /* Needed to deallocate stack         
 */
-  FAR void *stack_base_ptr;              /* Adjusted initial stack pointer     
 */
-                                         /* after the frame has been removed   
 */
-                                         /* from the stack.                    
 */
+  size_t    adj_stack_size;              /* Stack size after adjustment      */
+                                         /* for hardware, processor, etc.    */
+                                         /* (for debug purposes only)        */
+  FAR void *stack_alloc_ptr;             /* Pointer to allocated stack       */
+                                         /* Needed to deallocate stack       */
+  FAR void *stack_base_ptr;              /* Adjusted initial stack pointer   */
+                                         /* after the frame has been removed */
+                                         /* from the stack.                  */
 };
 
 /* struct task_group_s ******************************************************/
@@ -539,13 +539,13 @@ struct tcb_s
 
   /* Task Group *************************************************************/
 
-  FAR struct task_group_s *group;      /* Pointer to shared task group data */
+  FAR struct task_group_s *group;        /* Pointer to shared task group data 
*/
 
   /* Address Environment ****************************************************/
 
 #ifdef CONFIG_ARCH_ADDRENV
-  FAR struct addrenv_s *addrenv_own;    /* Task (group) own memory mappings */
-  FAR struct addrenv_s *addrenv_curr;   /* Current active memory mappings   */
+  FAR struct addrenv_s *addrenv_own;     /* Task (group) own memory mappings */
+  FAR struct addrenv_s *addrenv_curr;    /* Current active memory mappings   */
 #endif
 
   /* Task Management Fields *************************************************/
@@ -603,7 +603,7 @@ struct tcb_s
   /* External Module Support ************************************************/
 
 #ifdef CONFIG_PIC
-  FAR struct dspace_s *dspace;           /* Allocated area for .bss and .data  
 */
+  FAR struct dspace_s *dspace;           /* Allocated area for .bss and .data 
*/
 #endif
 
   /* POSIX Semaphore and Message Queue Control Fields ***********************/
@@ -727,7 +727,7 @@ begin_packed_struct struct tcbinfo_s
    * https://sourceware.org/gdb/current/onlinedocs/gdb/ARM-Features.html
    * https://sourceware.org/gdb/current/onlinedocs/gdb/RISC_002dV-Features
    * -.html
-   * value UINT16_MAX: This regsiter was not priovided by NuttX
+   * value UINT16_MAX: This register was not provided by NuttX
    */
 
   begin_packed_struct

Reply via email to