summaryrefslogtreecommitdiff
path: root/nuttx/sched/clock
Commit message (Collapse)AuthorAgeFilesLines
* RTC: Remove all backdoor interfaces from rtc.hGregory Nutt2015-02-134-8/+3
|
* Fix a problem in clock_systimer64 that occurs when (1) the 64-bit system ↵Gregory Nutt2015-02-131-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 Nutt2015-02-122-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 NGregory Nutt2015-02-031-0/+4
|
* clock_systimespec(): Fixes for compilation errors in certain ↵Gregory Nutt2015-01-301-1/+2
| | | | configurations. From Macs N.
* alling mq_timedreceived with immediate timeout was getting stuck and notGregory Nutt2014-11-191-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 buildGregory Nutt2014-10-071-3/+3
|
* Update TODO list + cosmetic changes to clock_systimer.cGregory Nutt2014-10-031-3/+5
|
* Fix build error with CONFIG_SYSTEM_TIME64Gregory Nutt2014-10-032-0/+2
|
* clock_gettime.c: Fix a cornercase bug in clock_gettime()Gregory Nutt2014-09-101-1/+1
|
* Fixes to clock bias logic. Remove vestiges of g_tickbias; apply bias ↵Gregory Nutt2014-09-103-19/+23
| | | | instead to g_basetime
* last change alters semantics of __HAVE_KERNEL_GLOBALSGregory Nutt2014-08-301-1/+1
|
* Back out and replace recent kludges for errno and clock_systimer. There is ↵Gregory Nutt2014-08-301-4/+3
| | | | a cleaner way
* nuttx/sched: Remove explicit references to errno. That is a problem from ↵Gregory Nutt2014-08-281-1/+1
| | | | within the kernel for certain configurations
* In some configurations, g_system_tmer must be extern'ed as a private variableGregory Nutt2014-08-281-3/+14
|
* Don't do 64-bit calculations if accuracy not achievable; Fix compile error ↵Gregory Nutt2014-08-151-34/+35
| | | | in high res RTC mode
* When reading the system timer, don't read a struct timespec, convert it to a ↵Gregory Nutt2014-08-154-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/clockGregory Nutt2014-08-0812-0/+1608