forked from Imagelibrary/rtems
score: Delete bsp_smp_broadcast_interrupt()
Since the per-CPU SMP lock must be acquired and released to send the message a single interrupt broadcast operations offers no benefits. If synchronization is required, then a SMP barrier must be used anyway.
This commit is contained in:
@@ -93,19 +93,3 @@ void _CPU_SMP_Send_interrupt(uint32_t target_processor_index)
|
||||
/* send interrupt to destination CPU */
|
||||
LEON3_IrqCtrl_Regs->force[target_processor_index] = 1 << LEON3_MP_IRQ;
|
||||
}
|
||||
|
||||
void bsp_smp_broadcast_interrupt(void)
|
||||
{
|
||||
uint32_t dest_cpu;
|
||||
uint32_t cpu;
|
||||
uint32_t max_cpus;
|
||||
|
||||
cpu = rtems_smp_get_current_processor();
|
||||
max_cpus = rtems_smp_get_processor_count();
|
||||
|
||||
for ( dest_cpu=0 ; dest_cpu < max_cpus ; dest_cpu++ ) {
|
||||
if ( cpu != dest_cpu ) {
|
||||
_CPU_SMP_Send_interrupt( dest_cpu );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user