walnux/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 Call nxsem_destroy or nxmutex_destry in the error path 2022-10-30 13:56:52 +01:00
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 Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
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 Call nxsem_destroy or nxmutex_destry in the error path 2022-10-30 13:56:52 +01:00
eeprom
efuse
fs fs: Add g_ prefix for all global mountpt_operations instances 2023-04-24 16:13:29 +02:00
himem
hwspinlock hwspinlock: add hwspinlock driver for multi CPU 2022-11-09 09:12:01 +01:00
i2c Added I2C Slave to RP2040 2022-07-16 01:56:52 +08:00
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 drivers/mbox: Don't reference the nonexistent CONFIG_MBOX 2022-11-07 10:14:20 +01:00
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 Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
power Charge: Add cut-off current interface 2023-02-01 09:51:31 -03:00
rc
rf
rptun rptun: add ns_match callback to resolve rptun deadlock 2022-07-27 20:36:51 +08:00
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 Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
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 libc/crc: Add full suffix to avoid the the penitential symbol collision 2022-08-29 18:06:53 +02:00
crc16.h arm64/a64: Add driver for MIPI DSI 2022-12-14 22:37:32 +08:00
crc32.h libc/crc: Add full suffix to avoid the the penitential symbol collision 2022-08-29 18:06:53 +02:00
crc64.h libc/crc: Add full suffix to avoid the the penitential symbol collision 2022-08-29 18:06:53 +02:00
elf.h
environ.h
envpath.h
hashtable.h hashtable.h: Added a hashtable implementation 2022-12-22 20:20:12 +08:00
init.h boards: Remove the duplicated prototype of CONFIG_INIT_ENTRYPOINT 2022-10-16 19:02:44 +02:00
ipcc.h stm32wl5: fix unbuffered mode and other possible bugs 2022-08-18 11:46:38 +08:00
irq.h SMP: fix crash when switch to new task which is still running 2022-09-17 17:37:47 +09:00
kmalloc.h mm: add kmm/umm_memdump 2022-10-29 11:35:27 +08:00
kthread.h sched/spawn: Support task_spawnattr_[set|get]stackaddr 2022-10-31 12:46:58 +09:00
lirc.h
list.h list.h: Add local temp variable to avoid the double evaluation 2022-10-06 08:29:39 +02:00
mmcsd.h drivers/mmcsd: Add MMC_IOC_CMD ioctl 2023-01-30 14:09:23 -03:00
module.h
mqueue.h sched/mqueue: decoupling condition member to common prologue 2022-10-22 12:58:11 +08:00
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 net/nat: Add TCP entry expiration logic 2022-11-11 14:36:55 +08:00
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 libs/libc/time: mktime normalize struct tm 2022-10-27 21:22:08 +08:00
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 libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
wqueue.h signal: Remove configurable assignment of signal numbers 2023-03-26 08:31:36 -06:00
zoneinfo.h