mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
remove rt_hw_mb define
sync smp skeleton
This commit is contained in:
+2
-2
@@ -600,7 +600,7 @@ void rt_schedule_insert_thread(struct rt_thread *thread)
|
||||
rt_list_insert_before(&(rt_thread_priority_table[thread->current_priority]),
|
||||
&(thread->tlist));
|
||||
cpu_mask = RT_CPU_MASK ^ (1 << cpu_id);
|
||||
rt_hw_ipi_send(RT_SCHEDULE_IPI_IRQ, cpu_mask);
|
||||
rt_hw_ipi_send(RT_SCHEDULE_IPI, cpu_mask);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -617,7 +617,7 @@ void rt_schedule_insert_thread(struct rt_thread *thread)
|
||||
if (cpu_id != bind_cpu)
|
||||
{
|
||||
cpu_mask = 1 << bind_cpu;
|
||||
rt_hw_ipi_send(RT_SCHEDULE_IPI_IRQ, cpu_mask);
|
||||
rt_hw_ipi_send(RT_SCHEDULE_IPI, cpu_mask);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user