|
@@ -727,11 +727,11 @@ enum
|
|
#define RT_THREAD_CTRL_INFO 0x03 /**< Get thread information. */
|
|
#define RT_THREAD_CTRL_INFO 0x03 /**< Get thread information. */
|
|
#define RT_THREAD_CTRL_BIND_CPU 0x04 /**< Set thread bind cpu. */
|
|
#define RT_THREAD_CTRL_BIND_CPU 0x04 /**< Set thread bind cpu. */
|
|
|
|
|
|
|
|
+#ifdef RT_USING_SMP
|
|
|
|
+
|
|
#define RT_CPU_DETACHED RT_CPUS_NR /**< The thread not running on cpu. */
|
|
#define RT_CPU_DETACHED RT_CPUS_NR /**< The thread not running on cpu. */
|
|
#define RT_CPU_MASK ((1 << RT_CPUS_NR) - 1) /**< All CPUs mask bit. */
|
|
#define RT_CPU_MASK ((1 << RT_CPUS_NR) - 1) /**< All CPUs mask bit. */
|
|
|
|
|
|
-#ifdef RT_USING_SMP
|
|
|
|
-
|
|
|
|
#ifndef RT_SCHEDULE_IPI
|
|
#ifndef RT_SCHEDULE_IPI
|
|
#define RT_SCHEDULE_IPI 0
|
|
#define RT_SCHEDULE_IPI 0
|
|
#endif /* RT_SCHEDULE_IPI */
|
|
#endif /* RT_SCHEDULE_IPI */
|
|
@@ -740,8 +740,6 @@ enum
|
|
#define RT_STOP_IPI 1
|
|
#define RT_STOP_IPI 1
|
|
#endif /* RT_STOP_IPI */
|
|
#endif /* RT_STOP_IPI */
|
|
|
|
|
|
-#endif /* RT_USING_SMP */
|
|
|
|
-
|
|
|
|
struct rt_cpu_usage_stats
|
|
struct rt_cpu_usage_stats
|
|
{
|
|
{
|
|
rt_uint64_t user;
|
|
rt_uint64_t user;
|
|
@@ -778,6 +776,8 @@ struct rt_cpu
|
|
};
|
|
};
|
|
typedef struct rt_cpu *rt_cpu_t;
|
|
typedef struct rt_cpu *rt_cpu_t;
|
|
|
|
|
|
|
|
+#endif /* RT_USING_SMP */
|
|
|
|
+
|
|
struct rt_thread;
|
|
struct rt_thread;
|
|
|
|
|
|
#ifdef RT_USING_SMART
|
|
#ifdef RT_USING_SMART
|