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/hppa1.1/clock/clock.c

    rbdb2899 r0dd1d44  
    102102    Clock_isrs = rtems_configuration_get_milliseconds_per_tick();
    103103
    104     if ( rtems_configuration_get_ticks_per_timeslice() ) {
    105         /*
    106          * initialize the interval here
    107          * First tick is set to right amount of time in the future
    108          * Future ticks will be incremented over last value set
    109          * in order to provide consistent clicks in the face of
    110          * interrupt overhead
    111          */
    112 
    113         Clock_clicks_interrupt = Clock_read_itimer() + CPU_HPPA_CLICKS_PER_TICK;
    114         set_itimer((rtems_unsigned32) Clock_clicks_interrupt);
    115 
    116         (void) set_vector(clock_isr, HPPA_INTERRUPT_EXTERNAL_INTERVAL_TIMER, 1);
    117     }
     104    /*
     105     * initialize the interval here
     106     * First tick is set to right amount of time in the future
     107     * Future ticks will be incremented over last value set
     108     * in order to provide consistent clicks in the face of
     109     * interrupt overhead
     110     */
     111
     112    Clock_clicks_interrupt = Clock_read_itimer() + CPU_HPPA_CLICKS_PER_TICK;
     113    set_itimer((rtems_unsigned32) Clock_clicks_interrupt);
     114
     115    (void) set_vector(clock_isr, HPPA_INTERRUPT_EXTERNAL_INTERVAL_TIMER, 1);
    118116    atexit(Clock_exit);
    119117}
     
    187185Clock_exit(void)
    188186{
    189     if ( rtems_configuration_get_ticks_per_timeslice() ) {
    190         (void) set_vector(0, HPPA_INTERRUPT_EXTERNAL_INTERVAL_TIMER, 1);
    191     }
     187  (void) set_vector(0, HPPA_INTERRUPT_EXTERNAL_INTERVAL_TIMER, 1);
    192188}
    193189
Note: See TracChangeset for help on using the changeset viewer.