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.
---
 bsps/shared/dev/clock/clockimpl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsps/shared/dev/clock/clockimpl.h 
b/bsps/shared/dev/clock/clockimpl.h
index 3c08c80859..f3b2565c56 100644
--- a/bsps/shared/dev/clock/clockimpl.h
+++ b/bsps/shared/dev/clock/clockimpl.h
@@ -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
-- 
2.12.3

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to