Changeset 0dd1d44 in rtems for c/src/lib/libcpu/mips/clock


Ignore:
Timestamp:
Jan 11, 2000, 5:34:20 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
76c2b35
Parents:
bdb2899
Message:

Removed old hack of using Configuration Table entry ticks_per_timeslice
being set to 0 to indicate that there should be no Clock Tick. This
was used by the Timing Tests to avoid clock tick overhead perturbing
execution times. Now the Timing Tests simply leave the Clock Tick
Driver out of the Device Driver Table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/mips/clock/ckinit.c

    rbdb2899 r0dd1d44  
    161161  Clock_isrs = rtems_configuration_get_milliseconds_per_tick();
    162162
    163   /*
    164    *  If ticks_per_timeslice is configured as non-zero, then the user
    165    *  wants a clock tick.
    166    */
    167 
    168   if ( rtems_configuration_get_ticks_per_timeslice() ) {
    169     Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );
    170     /*
    171      *  Hardware specific initialize goes here
    172      */
    173 
    174     mips_timer_rate = rtems_configuration_get_microseconds_per_tick() * CLOCKS_PER_MICROSECOND;
    175     mips_set_timer( mips_timer_rate );
    176     enable_int(CLOCK_VECTOR_MASK);
    177   }
     163  Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );
     164  /*
     165   *  Hardware specific initialize goes here
     166   */
     167
     168  mips_timer_rate =
     169     rtems_configuration_get_microseconds_per_tick() * CLOCKS_PER_MICROSECOND;
     170  mips_set_timer( mips_timer_rate );
     171  enable_int(CLOCK_VECTOR_MASK);
    178172
    179173  /*
     
    190184void Clock_exit( void )
    191185{
    192   if ( rtems_configuration_get_ticks_per_timeslice() ) {
    193     /* mips: turn off the timer interrupts */
    194     disable_int(~CLOCK_VECTOR_MASK);
    195   }
     186  /* mips: turn off the timer interrupts */
     187  disable_int(~CLOCK_VECTOR_MASK);
    196188}
    197189
Note: See TracChangeset for help on using the changeset viewer.