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/libbsp/m68k/gen68302/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 'c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c')
-rw-r--r-- | c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c b/c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c index 9d6dc19390..3df157d1f3 100644 --- a/c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c +++ b/c/src/lib/libbsp/m68k/gen68302/clock/ckinit.c @@ -83,30 +83,25 @@ void Install_clock( rtems_isr_entry clock_isr ) { - Clock_driver_ticks = 0; Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000; - if ( BSP_Configuration.ticks_per_timeslice ) { - set_vector( clock_isr, CLOCK_VECTOR, 1 ); + set_vector( clock_isr, CLOCK_VECTOR, 1 ); - m302.reg.trr1 = TRR1_VAL; /* set timer reference register */ - m302.reg.tmr1 = TMR1_VAL; /* set timer mode register & enable */ - /* - * Enable TIMER1 interrupts only. - */ - m302.reg.imr = RBIT_IMR_TIMER1; /* set 68302 int-mask to allow ints */ + m302.reg.trr1 = TRR1_VAL; /* set timer reference register */ + m302.reg.tmr1 = TMR1_VAL; /* set timer mode register & enable */ + /* + * Enable TIMER1 interrupts only. + */ + m302.reg.imr = RBIT_IMR_TIMER1; /* set 68302 int-mask to allow ints */ - atexit( Clock_exit ); - } + atexit( Clock_exit ); } void Clock_exit( void ) { - if ( BSP_Configuration.ticks_per_timeslice ) { - /* TODO: figure out what to do here */ - /* do not restore old vector */ - } + /* TODO: figure out what to do here */ + /* do not restore old vector */ } rtems_device_driver Clock_initialize( |