bsp/shared/clock: Reset Clock_driver_isrs to correct value

CLOCK_DRIVER_ISRS_PER_TICK is the configuration define,
CLOCK_DRIVER_ISRS_PER_TICK_VALUE is the actual value of ISRS per clock
tick, therefore use this one to reset the Clock_driver_isrs after each
tick.
This commit is contained in:
Jan Sommer
2020-04-02 21:05:48 +02:00
committed by Sebastian Huber
parent 51307919b4
commit 1483012b38

View File

@@ -182,7 +182,7 @@ rtems_isr Clock_isr(
if ( !Clock_driver_isrs ) {
Clock_driver_timecounter_tick();
Clock_driver_isrs = CLOCK_DRIVER_ISRS_PER_TICK;
Clock_driver_isrs = CLOCK_DRIVER_ISRS_PER_TICK_VALUE;
}
Clock_driver_isrs--;
#else