Changeset b72f5799 in rtems


Ignore:
Timestamp:
Nov 26, 2007, 10:58:07 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
4f6acf4
Parents:
219aed68
Message:

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

  • clock/ckinit.c: Eliminate the clicks_per_microsecond field in the MIPS CPU Table and define another mechanism for drivers to obtain this information.
Location:
c/src/lib/libcpu/mips
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/mips/ChangeLog

    r219aed68 rb72f5799  
     12007-11-26      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * clock/ckinit.c: Eliminate the clicks_per_microsecond field in the
     4        MIPS CPU Table and define another mechanism for drivers to obtain
     5        this information.
     6
    172007-03-12      Joel Sherrill <joel@OARcorp.com>
    28
  • c/src/lib/libcpu/mips/clock/ckinit.c

    r219aed68 rb72f5799  
    4848#include "clock.h"
    4949
    50 /* formerly in the BSP */
    51 #if 0
    52 #define CLOCKS_PER_MICROSECOND ( CPU_CLOCK_RATE_MHZ ) /* equivalent to CPU clock speed in MHz */
    53 #endif
    54 
    55 #define CLOCKS_PER_MICROSECOND \
    56   rtems_cpu_configuration_get_clicks_per_microsecond()
     50extern uint32_t bsp_clicks_per_microsecond;
     51
    5752/* to avoid including the bsp */
    5853mips_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
     
    166161   */
    167162
    168   mips_timer_rate =
    169      rtems_configuration_get_microseconds_per_tick() * CLOCKS_PER_MICROSECOND;
     163  mips_timer_rate = rtems_configuration_get_microseconds_per_tick() *
     164     bsp_clicks_per_microsecond;
    170165  mips_set_timer( mips_timer_rate );
    171166  mips_enable_in_interrupt_mask(CLOCK_VECTOR_MASK);
Note: See TracChangeset for help on using the changeset viewer.