Skip to content
Snippets Groups Projects
Commit 143d287f authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Fix some missing header file inclusions and a misplaced semi-colon from recent commits

parent f3356fee
No related branches found
No related tags found
No related merge requests found
arch @ a5acac8e
Subproject commit 15236a5b07c6f5d254ccdc8478c613a5c21e4296 Subproject commit a5acac8e6adf2505c4e995797a203a0bc243f503
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
#define PTHREAD_KEYS_MAX CONFIG_NPTHREAD_KEYS #define PTHREAD_KEYS_MAX CONFIG_NPTHREAD_KEYS
/* CPU affinity mask helpers ***************************************************/ /* CPU affinity mask helpers ***************************************************/
/* These are not standard but are defined for Linux compatibility */
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
...@@ -88,7 +89,7 @@ ...@@ -88,7 +89,7 @@
/* int CPU_COUNT(FAR const cpu_set_t *set); */ /* int CPU_COUNT(FAR const cpu_set_t *set); */
#define CPU_COUNT(s) sched_cpu_count(s) # define CPU_COUNT(s) sched_cpu_count(s)
/* void CPU_AND(FAR cpu_set_t *destset, FAR const cpu_set_t *srcset1, /* void CPU_AND(FAR cpu_set_t *destset, FAR const cpu_set_t *srcset1,
* FAR const cpu_set_t *srcset2); * FAR const cpu_set_t *srcset2);
...@@ -112,6 +113,7 @@ ...@@ -112,6 +113,7 @@
# define CPU_EQUAL(s1,s2) (*(s2) == *(s2)) # define CPU_EQUAL(s1,s2) (*(s2) == *(s2))
/* REVISIT: Variably sized CPU sets are not supported */
/* FAR cpu_set_t *CPU_ALLOC(int num_cpus); */ /* FAR cpu_set_t *CPU_ALLOC(int num_cpus); */
# define CPU_ALLOC(n) (FAR cpu_set_t *)malloc(sizeof(cpu_set_t)); # define CPU_ALLOC(n) (FAR cpu_set_t *)malloc(sizeof(cpu_set_t));
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <pthread.h> #include <pthread.h>
#include <debug.h> #include <debug.h>
#include <assert.h>
#include <errno.h> #include <errno.h>
/**************************************************************************** /****************************************************************************
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <pthread.h> #include <pthread.h>
#include <debug.h> #include <debug.h>
#include <assert.h>
#include <errno.h> #include <errno.h>
/**************************************************************************** /****************************************************************************
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
* *
****************************************************************************/ ****************************************************************************/
int sched_cpu_count(FAR const cpu_set_t *set); int sched_cpu_count(FAR const cpu_set_t *set)
{ {
int count; int count;
int cpu; int cpu;
......
...@@ -412,7 +412,7 @@ int pthread_create(FAR pthread_t *thread, FAR const pthread_attr_t *attr, ...@@ -412,7 +412,7 @@ int pthread_create(FAR pthread_t *thread, FAR const pthread_attr_t *attr,
* parent thread's affinity mask. * parent thread's affinity mask.
*/ */
if ( attr->affinity != 0) if (attr->affinity != 0)
{ {
ptcb->cmn.affinity = attr->affinity; ptcb->cmn.affinity = attr->affinity;
} }
......
...@@ -163,8 +163,8 @@ static int task_assignpid(FAR struct tcb_s *tcb) ...@@ -163,8 +163,8 @@ static int task_assignpid(FAR struct tcb_s *tcb)
* None * None
* *
* Assumptions: * Assumptions:
* The parent of the new task is the task at the head of the ready-to-run * The parent of the new task is the task at the head of the assigned task
* list. * list for the current CPU.
* *
****************************************************************************/ ****************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment