nuttx/include/nuttx
Michal Lenc 360e938fa6 sched: add support for adjtime() interface
This commit adds Linux like adjtime() interface that is used to correct
the system time clock if it varies from real value. The adjustment is
done by slight adjustment of clock period and therefore the adjustment
is without time jumps (both forward and backwards)

The implementation is enabled by CONFIG_CLOCK_ADJTIME and separated from
CONFIG_CLOCK_TIMEKEEPING functions. Options CONFIG_CLOCK_ADJTIME_SLEWLIMIT
and CONFIG_CLOCK_ADJTIME_PERIOD can be used to control the adjustment
speed.

Interfaces up_get_timer_period() and up_adj_timer_period() has to be
defined by architecture level support.

This is not a POSIX interface but derives from 4.3BSD, System V.
It is also supported for Linux compatibility.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-04-25 14:37:50 -03:00
..
1wire
analog
audio audio: add audio_dma device driver. 2023-04-22 01:50:51 +08:00
binfmt sched/addrenv.c: Implement re-entrancy for addrenv_select() 2023-04-25 14:33:19 +02:00
can
clk
contactless
crypto crypto: Initial copy from https://github.com/openbsd/sys/crypto 2022-12-14 02:33:56 +08:00
dma include/dma: support to config dst/src drq for every dma channel 2023-04-22 01:02:51 +08:00
drivers
eeprom
efuse
fs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
himem
hwspinlock
i2c
input touch: Add ioctl to enable/disable gesture 2023-02-02 22:48:00 +08:00
ioexpander ioexpander/gpio:Add gpio_pin_register_byname 2023-02-11 18:31:40 +08:00
lcd libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc) 2022-12-05 14:27:55 +01:00
leds Add LP503x RGB LED driver 2022-12-22 13:39:05 +08:00
lib libc/stdio: Implement lib_get_stream 2023-03-02 09:56:57 +01:00
math
mbox
mm circbuf support write or read buffer direct 2023-04-23 23:32:00 +08:00
modem add holder for mutex 2023-01-31 12:08:05 +09:00
motor motor: Add calibration and selftest 2023-01-28 19:54:35 +02:00
mtd nuttx: fix indentation issue 2023-03-09 16:27:07 -03:00
net drivers/net, include/nuttx/net: Add AR8031 PHY 2023-04-25 11:45:19 +08:00
note drivers/note: adjust the note_driver_ops definition 2023-03-21 12:13:38 -03:00
nx
power Charge: Add cut-off current interface 2023-02-01 09:51:31 -03:00
rc
rf
rptun
segger sergger: add note_ prefix to sysview 2023-01-05 22:04:52 +08:00
sensors APDS9922 2023-04-22 20:38:29 +08:00
serial arch: Rename up_[early]serialinit to [arm64|riscv|x86_64][early]serialinit 2023-03-27 12:35:04 +03:00
spi
syslog drivers/syslog:support stream as syslog backend. 2022-11-28 20:19:00 +08:00
timers nuttx: add more dependent header file 2023-04-11 09:13:32 +03:00
usb rndis: move private definitions from a public header to the source file 2023-03-31 08:17:01 +09:00
usrsock move usrsock to kernel space 2023-01-11 15:14:03 +08:00
video drivers/video: passthrough unknown ioctl commands for customized scenarios in fb 2023-04-22 12:48:46 +08:00
virtio virtio: Add virtio drivers 2022-11-29 13:16:44 +08:00
wireless wireless/bluetooth: Fix build error when BT_GATT_CCC is used. 2023-04-25 11:42:22 +08:00
.gitignore
addrenv.h sched/addrenv.c: Implement re-entrancy for addrenv_select() 2023-04-25 14:33:19 +02:00
allsyms.h
arch.h sched: add support for adjtime() interface 2023-04-25 14:37:50 -03:00
ascii.h
atexit.h libc: Implement quick_exit and at_quick_exit 2023-01-25 14:31:37 +02:00
board.h board: Pass the assertion expression to board_crashdump too 2023-01-25 16:00:48 -03:00
cache.h cache: add up_get_xcache_linesize() support 2023-03-20 17:17:22 +08:00
can.h stm32h7: socket CAN error handling. 2023-01-30 11:22:49 +08:00
cancelpt.h
clock.h include/nuttx/clock.h: Change ?SEC2TICK macros to round up and fix nxstyle errors 2023-01-31 22:42:29 +08:00
compiler.h include/compiler: replace likely to predict_true 2023-03-21 12:09:45 -03:00
crc8.h
crc16.h arm64/a64: Add driver for MIPI DSI 2022-12-14 22:37:32 +08:00
crc32.h
crc64.h
elf.h
environ.h
envpath.h
hashtable.h hashtable.h: Added a hashtable implementation 2022-12-22 20:20:12 +08:00
init.h
ipcc.h
irq.h
kmalloc.h
kthread.h
lirc.h
list.h
mmcsd.h drivers/mmcsd: Add MMC_IOC_CMD ioctl 2023-01-30 14:09:23 -03:00
module.h
mqueue.h
mutex.h misc/mutex: fix assertion if nxmutex_reset() before nxmutex_unlock() 2023-02-04 02:13:15 +08:00
notifier.h sched/misc:add linux-like reboot notifier list 2022-12-29 19:18:42 +08:00
nuttx.h
page.h nuttx/sched: merge up_block_task and up_unblock_task 2022-11-22 22:59:08 +08:00
panic_notifier.h assert:add a last type to call notifier 2023-01-05 22:58:00 +08:00
pgalloc.h
progmem.h
pthread.h sched: Map SCHED_OTHER to SCHED_FIFO or SCHED_RR 2023-01-30 03:01:03 +02:00
queue.h
random.h
reboot_notifier.h reboot: Remove SYS_DOWN to avoid the confusion 2023-04-21 20:37:59 +03:00
sched.h procfs: add total time running time of task 2023-04-24 19:38:29 +08:00
sched_note.h drivers/note: replace sched_note_filter_dump to sched_note_filter_tag 2023-04-19 02:53:34 +08:00
scsi.h
sdio.h mmcsd/sdio: fix potential race condition in sdio 2023-03-21 14:40:44 -03:00
semaphore.h add holder for mutex 2023-01-31 12:08:05 +09:00
signal.h Increase the number of real time signals. Two is not enough. 2023-03-27 16:59:04 +03:00
spawn.h
spinlock.h spinlock: Move spinlock_init to public macros 2023-02-02 22:47:34 +08:00
streams.h stdio: Implement simple buffered out stream for vdprintf 2023-03-01 13:08:59 +09:00
symtab.h
time.h
tls.h fs/streams: Move the file streams from the group structure into TLS 2022-12-22 20:16:11 +08:00
trace.h trace: replace SCHED_NOTE_BEGIN to sched_note_begin 2023-04-19 02:53:34 +08:00
userspace.h
vt100.h
wdog.h
wqueue.h signal: Remove configurable assignment of signal numbers 2023-03-26 08:31:36 -06:00
zoneinfo.h