Gregory Nutt
|
d9f960e97b
|
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.
|
2015-02-13 06:13:47 -06:00 |
Gregory Nutt
|
da29907ac9
|
Update TODO list + cosmetic changes to clock_systimer.c
|
2014-10-03 11:21:35 -06:00 |
Gregory Nutt
|
8d43a6bdcd
|
Fix build error with CONFIG_SYSTEM_TIME64
|
2014-10-03 10:20:46 -06:00 |
Gregory Nutt
|
2029236ed0
|
Back out and replace recent kludges for errno and clock_systimer. There is a cleaner way
|
2014-08-30 14:26:56 -06:00 |
Gregory Nutt
|
d4b56eb3cc
|
Move clock functions from sched/ to sched/clock
|
2014-08-08 14:43:02 -06:00 |