diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-01-11 17:34:20 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-01-11 17:34:20 +0000 |
commit | 0dd1d44582dd2b39a791aa60f76358ff9bba8cd8 (patch) | |
tree | 6be7a7b7d21975f08ba16993958e4bca5177dc76 /c/src/lib/libcpu/mips64orion/clock/ckinit.c | |
parent | Patch from Emmanuel Raguet <raguet@crf.canon.fr> to correct macro (diff) | |
download | rtems-0dd1d44582dd2b39a791aa60f76358ff9bba8cd8.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/mips64orion/clock/ckinit.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/c/src/lib/libcpu/mips64orion/clock/ckinit.c b/c/src/lib/libcpu/mips64orion/clock/ckinit.c index 4fda46ea0b..c6ae88f9e0 100644 --- a/c/src/lib/libcpu/mips64orion/clock/ckinit.c +++ b/c/src/lib/libcpu/mips64orion/clock/ckinit.c @@ -160,21 +160,15 @@ void Install_clock( Clock_driver_ticks = 0; Clock_isrs = rtems_configuration_get_milliseconds_per_tick(); + Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 ); /* - * If ticks_per_timeslice is configured as non-zero, then the user - * wants a clock tick. + * Hardware specific initialize goes here */ - if ( rtems_configuration_get_ticks_per_timeslice() ) { - Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 ); - /* - * Hardware specific initialize goes here - */ - - mips_timer_rate = rtems_configuration_get_microseconds_per_tick() * CLOCKS_PER_MICROSECOND; - mips_set_timer( mips_timer_rate ); - enable_int(CLOCK_VECTOR_MASK); - } + mips_timer_rate = + rtems_configuration_get_microseconds_per_tick() * CLOCKS_PER_MICROSECOND; + mips_set_timer( mips_timer_rate ); + enable_int(CLOCK_VECTOR_MASK); /* * Schedule the clock cleanup routine to execute if the application exits. @@ -189,10 +183,8 @@ void Install_clock( void Clock_exit( void ) { - if ( rtems_configuration_get_ticks_per_timeslice() ) { - /* mips: turn off the timer interrupts */ - disable_int(~CLOCK_VECTOR_MASK); - } + /* mips: turn off the timer interrupts */ + disable_int(~CLOCK_VECTOR_MASK); } /* |