Fix a problem in clock_systimer64 that occurs when (1) the 64-bit system time...
Fix a problem in clock_systimer64 that occurs when (1) the 64-bit system time is enabled, and (2) the value of CONFIG_USEC_PER_TICK is less than 1 millisconds (such as when using the tickless mode of operation). In that case, the convertion of time to 64-bit millisecond value in clock_systmer64() causes some bad times to be returned. Time was converted to milliseconds, then to configured ticks. Precision was lost in the millisecond convertion. The fix is to first convert time to a 64-bit microsecond value, then to the configured tick value. Noted by David Sidrane.
parent
e7470e08
Please register or sign in to comment