bsps: Delete unused bsp_smp_delay()

This commit is contained in:
Sebastian Huber
2014-02-05 15:27:22 +01:00
parent 36a52ab367
commit 1c1c2a04c3
2 changed files with 0 additions and 27 deletions

View File

@@ -34,7 +34,3 @@ void bsp_smp_broadcast_message(
void _CPU_SMP_Send_interrupt( uint32_t target_processor_index )
{
}
void bsp_smp_delay( int max )
{
}

View File

@@ -49,8 +49,6 @@ void leon3_secondary_cpu_initialize(uint32_t cpu)
rtems_smp_secondary_cpu_initialize();
}
static void bsp_smp_delay( int );
uint32_t bsp_smp_initialize( uint32_t configured_cpu_count )
{
uint32_t cpu;
@@ -110,24 +108,3 @@ void bsp_smp_broadcast_interrupt(void)
}
}
}
static __inline__ void __delay(unsigned long loops)
{
__asm__ __volatile__("cmp %0, 0\n\t"
"1: bne 1b\n\t"
"subcc %0, 1, %0\n" :
"=&r" (loops) :
"0" (loops) :
"cc"
);
}
/*
* Kill time without depending on the timer being present or programmed.
*
* This is not very sophisticated.
*/
void bsp_smp_delay( int max )
{
__delay( max );
}