smp
This commit is contained in:
parent
b206d440c7
commit
aafc0ae0f8
@ -7,28 +7,28 @@ typedef rt_bool_t (*rt_smp_cond)(int cpu, void *info);
|
||||
#define SMP_CALL_EVENT_FUNC 0x1
|
||||
|
||||
#define SMP_CALL_WAIT_ALL (1 << 0)
|
||||
#define SMP_CALL_NO_WAIT (1 << 1)
|
||||
#define SMP_CALL_NO_WAIT (1 << 1)
|
||||
|
||||
#define RT_ALL_CPU ((1 << RT_CPUS_NR) - 1)
|
||||
struct rt_smp_event
|
||||
{
|
||||
int cpu_mask;
|
||||
int event_id;
|
||||
void *data;
|
||||
int cpu_mask;
|
||||
int event_id;
|
||||
void *data;
|
||||
rt_smp_call_func_back func;
|
||||
};
|
||||
struct rt_smp_call
|
||||
{
|
||||
struct rt_spinlock lock;
|
||||
struct rt_spinlock lock;
|
||||
struct rt_smp_event event;
|
||||
};
|
||||
|
||||
|
||||
void rt_smp_call_ipi_handler(int vector, void *param);
|
||||
void rt_smp_call_each_cpu(rt_smp_call_func_back func, void *data,rt_uint8_t flag);
|
||||
void rt_smp_call_each_cpu_cond(rt_smp_call_func_back func, void *data,rt_uint8_t flag,rt_smp_cond cond_func);
|
||||
void rt_smp_call_any_cpu(int cpu_mask,rt_smp_call_func_back func, void *data,rt_uint8_t flag);
|
||||
void rt_smp_call_any_cpu_cond(int cpu_mask,rt_smp_call_func_back func, void *data,rt_uint8_t flag,rt_smp_cond cond_func);
|
||||
void rt_smp_call_each_cpu(rt_smp_call_func_back func, void *data, rt_uint8_t flag);
|
||||
void rt_smp_call_each_cpu_cond(rt_smp_call_func_back func, void *data, rt_uint8_t flag, rt_smp_cond cond_func);
|
||||
void rt_smp_call_any_cpu(int cpu_mask, rt_smp_call_func_back func, void *data, rt_uint8_t flag);
|
||||
void rt_smp_call_any_cpu_cond(int cpu_mask, rt_smp_call_func_back func, void *data, rt_uint8_t flag, rt_smp_cond cond_func);
|
||||
void rt_smp_init(void);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user