[rtems commit] bsp/shared/clock: Reset Clock_driver_isrs to correct value

Sebastian Huber sebh at rtems.org
Fri Apr 3 09:49:16 UTC 2020


Module:    rtems
Branch:    master
Commit:    1483012b38f543840e0ca28ce3559e999f0b770a
Changeset: http://git.rtems.org/rtems/commit/?id=1483012b38f543840e0ca28ce3559e999f0b770a

Author:    Jan Sommer <jan.sommer at dlr.de>
Date:      Thu Apr  2 21:05:48 2020 +0200

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.

---

 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 3c08c80..f3b2565 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



More information about the vc mailing list