Skip to content

Commit

Permalink
Some cosmetic updates, mostly to spacing and comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-nutt committed Dec 30, 2018
1 parent 1325c98 commit bdd02a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/nuttx/mm/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@ struct mm_heap_s

sem_t mm_semaphore;
pid_t mm_holder;
int mm_counts_held;
int mm_counts_held;

/* This is the size of the heap provided to mm */

size_t mm_heapsize;
size_t mm_heapsize;

/* This is the first and last nodes of the heap */

Expand Down
5 changes: 3 additions & 2 deletions sched/task/task_getpid.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <sched.h>
#include <errno.h>

#include "sched/sched.h"
#include "task/task.h"
Expand All @@ -66,7 +67,7 @@
* getpid(), however, may be called from within the OS in some cases.
* There are certain situations during context switching when the OS data
* structures are in flux and where the current task at the head of the
* ready-to-run task list) is not actually running. In that case,
* ready-to-run task list is not actually running. In that case,
* getpid() will return the error: -ESRCH
*
****************************************************************************/
Expand All @@ -80,7 +81,7 @@ pid_t getpid(void)
* exceptions to this:
*
* 1. Early in the start-up sequence, the ready-to-run list may be
* empty! This case, of course, the CPU0 start-up/IDLE thread with
* empty! In this case, of course, the CPU0 start-up/IDLE thread with
* pid == 0 must be running, and
* 2. As described above, during certain context-switching conditions the
* task at the head of the ready-to-run list may not actually be
Expand Down

0 comments on commit bdd02a6

Please sign in to comment.