Changeset 1c1c2a0 in rtems


Ignore:
Timestamp:
Feb 5, 2014, 2:27:22 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
558cc8d
Parents:
36a52ab
git-author:
Sebastian Huber <sebastian.huber@…> (02/05/14 14:27:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/05/14 14:46:30)
Message:

bsps: Delete unused bsp_smp_delay()

Location:
c/src/lib/libbsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/smp/smp_stub.c

    r36a52ab r1c1c2a0  
    3535{
    3636}
    37 
    38 void bsp_smp_delay( int max )
    39 {
    40 }
  • c/src/lib/libbsp/sparc/leon3/smp/smp_leon3.c

    r36a52ab r1c1c2a0  
    4949  rtems_smp_secondary_cpu_initialize();
    5050}
    51 
    52 static void bsp_smp_delay( int );
    5351
    5452uint32_t bsp_smp_initialize( uint32_t configured_cpu_count )
     
    111109  }
    112110}
    113 
    114 static __inline__ void __delay(unsigned long loops)
    115 {
    116    __asm__ __volatile__("cmp %0, 0\n\t"
    117      "1: bne 1b\n\t"
    118      "subcc %0, 1, %0\n" :
    119      "=&r" (loops) :
    120      "0" (loops) :
    121      "cc"
    122   );
    123 }
    124 
    125 /*
    126  *  Kill time without depending on the timer being present or programmed.
    127  *
    128  *  This is not very sophisticated.
    129  */
    130 void bsp_smp_delay( int max )
    131 {
    132    __delay( max );
    133 }
Note: See TracChangeset for help on using the changeset viewer.