Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | RTC: Remove all backdoor interfaces from rtc.h | Gregory Nutt | 2015-02-13 | 4 | -8/+3 |
| | |||||
* | Fix a problem in clock_systimer64 that occurs when (1) the 64-bit system ↵ | Gregory Nutt | 2015-02-13 | 1 | -4/+3 |
| | | | | | | | | 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. | ||||
* | gettimeofday() and settimeofday(): Move gittimeofdady() from sched/clock to ↵ | Gregory Nutt | 2015-02-12 | 2 | -114/+1 |
| | | | | | | libc/time. All remove gettimeofday() from NuttX system calls. It is only a wrapper around clock_settime() and does not need a trap. gettimeofday() is no longer tried as a core OS interface. gettimeofday has been decremented in POSIX 2008. settimeofday() was never part of POSIX, but I decided to add it to libc as well just for symmetry. | ||||
* | Eliminates a warning. From Macs N | Gregory Nutt | 2015-02-03 | 1 | -0/+4 |
| | |||||
* | clock_systimespec(): Fixes for compilation errors in certain ↵ | Gregory Nutt | 2015-01-30 | 1 | -1/+2 |
| | | | | configurations. From Macs N. | ||||
* | alling mq_timedreceived with immediate timeout was getting stuck and not | Gregory Nutt | 2014-11-19 | 1 | -2/+39 |
| | | | | | | | | | | | | | timeout. Immediate timeout is achieved by setting absolute timeout value to past time, for example abstime={ .tv_sec=0, .tv_nsec=0 }. However absolute time was converted to relative time using unsigned integer arithmetic and resulted large ticks count by clock_abstime2ticks, instead of expected negative ticks value. Patch corrects clock_abstime2ticks to return negative ticks, if absolute time is in the past. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@haltian.com> | ||||
* | Simplify how C source files are selected in the build | Gregory Nutt | 2014-10-07 | 1 | -3/+3 |
| | |||||
* | Update TODO list + cosmetic changes to clock_systimer.c | Gregory Nutt | 2014-10-03 | 1 | -3/+5 |
| | |||||
* | Fix build error with CONFIG_SYSTEM_TIME64 | Gregory Nutt | 2014-10-03 | 2 | -0/+2 |
| | |||||
* | clock_gettime.c: Fix a cornercase bug in clock_gettime() | Gregory Nutt | 2014-09-10 | 1 | -1/+1 |
| | |||||
* | Fixes to clock bias logic. Remove vestiges of g_tickbias; apply bias ↵ | Gregory Nutt | 2014-09-10 | 3 | -19/+23 |
| | | | | instead to g_basetime | ||||
* | last change alters semantics of __HAVE_KERNEL_GLOBALS | Gregory Nutt | 2014-08-30 | 1 | -1/+1 |
| | |||||
* | Back out and replace recent kludges for errno and clock_systimer. There is ↵ | Gregory Nutt | 2014-08-30 | 1 | -4/+3 |
| | | | | a cleaner way | ||||
* | nuttx/sched: Remove explicit references to errno. That is a problem from ↵ | Gregory Nutt | 2014-08-28 | 1 | -1/+1 |
| | | | | within the kernel for certain configurations | ||||
* | In some configurations, g_system_tmer must be extern'ed as a private variable | Gregory Nutt | 2014-08-28 | 1 | -3/+14 |
| | |||||
* | Don't do 64-bit calculations if accuracy not achievable; Fix compile error ↵ | Gregory Nutt | 2014-08-15 | 1 | -34/+35 |
| | | | | in high res RTC mode | ||||
* | When reading the system timer, don't read a struct timespec, convert it to a ↵ | Gregory Nutt | 2014-08-15 | 4 | -79/+176 |
| | | | | fake tick count, then back to a timespec. Remove CLOCK_ACTIVETIME.. it is non-standard, unused, and gets in the way of changes like this | ||||
* | Move clock functions from sched/ to sched/clock | Gregory Nutt | 2014-08-08 | 12 | -0/+1608 |