Changeset 94beb19 in rtems


Ignore:
Timestamp:
Dec 11, 2007, 3:47:35 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
040b74f
Parents:
4b39acf
Message:

2007-12-11 Joel Sherrill <joel.sherrill@…>

  • irq/irq.c: Revert accidentally committed test code.
Location:
c/src/lib/libbsp/powerpc/gen5200
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen5200/ChangeLog

    r4b39acf r94beb19  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * irq/irq.c: Revert accidentally committed test code.
     4
    152007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/powerpc/gen5200/irq/irq.c

    r4b39acf r94beb19  
    632632}
    633633
    634 #include <stdio.h>
    635 uint64_t BSP_Starting_TBR;
    636 uint64_t BSP_Total_in_ISR;
    637 uint32_t BSP_ISR_Count;
    638 uint32_t BSP_Worst_ISR;
    639 #define BSP_COUNTED_IRQ 16
    640 uint32_t BSP_ISR_Count_Per[BSP_COUNTED_IRQ + 1];
    641 
    642 void BSP_initialize_IRQ_Timing(void)
    643 {
    644   int i;
    645   BSP_Starting_TBR = PPC_Get_timebase_register();
    646   BSP_Total_in_ISR = 0;
    647   BSP_ISR_Count = 0;
    648   BSP_Worst_ISR = 0;
    649   for ( i=0 ; i<BSP_COUNTED_IRQ ; i++ )
    650     BSP_ISR_Count_Per[i] = 0;
    651 }
    652 
    653 static const char * u64tostring(
    654   char *buffer,
    655   uint64_t v
    656 )
    657 {
    658   sprintf( buffer, "%lld %lld usecs", v, (v / 33) );
    659   return buffer;
    660 }
    661 void BSP_report_IRQ_Timing(void)
    662 {
    663   uint64_t now;
    664   char buffer[96];
    665   int i;
    666 
    667   now = PPC_Get_timebase_register();
    668   printk( "Started at: %s\n", u64tostring(buffer, BSP_Starting_TBR) );
    669   printk( "Current   : %s\n", u64tostring(buffer, now) );
    670   printk( "System up : %s\n", u64tostring(buffer, now - BSP_Starting_TBR) );
    671   printk( "ISRs      : %d\n", BSP_ISR_Count );
    672   printk( "ISRs ran  : %s\n", u64tostring(buffer, BSP_Total_in_ISR) );
    673   printk( "Worst ISR : %s\n", u64tostring(buffer, BSP_Worst_ISR) );
    674   for ( i=0 ; i<BSP_COUNTED_IRQ ; i++ )
    675     printk( "IRQ %d: %d\n", i, BSP_ISR_Count_Per[i] );
    676   printk( "Ticks     : %d\n",  Clock_driver_ticks );
    677 }
    678634
    679635/*
     
    687643  register unsigned int pmce;
    688644  register unsigned int crit_pri_main_mask, per_mask;
    689   uint64_t start, stop, thisTime;
    690 
    691   start = PPC_Get_timebase_register();
    692   BSP_ISR_Count++;
    693   if ( excNum < BSP_COUNTED_IRQ )
    694     BSP_ISR_Count_Per[excNum]++;
    695   else
    696     printk( "not counting %d\n", excNum);
    697645
    698646  switch (excNum) {
Note: See TracChangeset for help on using the changeset viewer.