Using ONESHOT_CURRENT retrieves the tick number multiplied by tick time; thus it doesn't give the accurate monotonic time - it is quantized by the tick time. This cannot be used as a ndelay timer, it would always loop at least to the end of the ongoing tick. Revert the up_udelay to use the original "coarse" looping. The "accurate" udelay, if such is needed, should either be done under arch specific code, or there should be a function for getting the accurate time that is available for all the platforms. Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae> |
||
|---|---|---|
| .. | ||
| arch_alarm.c | ||
| arch_rtc.c | ||
| arch_timer.c | ||
| capture.c | ||
| CMakeLists.txt | ||
| cs2100-cp.c | ||
| ds3231.c | ||
| ds3231.h | ||
| goldfish_timer.c | ||
| Kconfig | ||
| Make.defs | ||
| mcp794xx.c | ||
| mcp794xx.h | ||
| oneshot.c | ||
| pcf85263.c | ||
| pcf85263.h | ||
| pl031.c | ||
| pwm.c | ||
| rpmsg_rtc.c | ||
| rtc.c | ||
| rx8010.c | ||
| rx8010.h | ||
| timer.c | ||
| watchdog.c | ||