zephyr/subsys
Andy Ross b8ffd9acd6 sys_clock: Make clock_always_on true by default
This flag is an indication to the timer driver that the OS doesn't
care about rollover conditions of the tick count while idling, so the
system doesn't need to wake up once per counter flip[1].  Obviously in
that circumstance values returned from k_uptime_get_32() are going to
be wrong, so the implementation had an assert to check for misuse.

But no one understood that from the docs, so the only place these APIs
were used in practice were as "guards" around code that needed to call
k_uptime_get_32(), even though that's 100% wrong per docs!

Clarify the docs.  Remove the incorrect guards.  Change the flag to
initialize to true so that uptime isn't broken-by-default in tickless
mode.  Also move the implemenations of the functions out of the
header, as there's no good reason for these to need to be inlined.

[1] Which can be significant.  A 100MHz ARM using the 24 bit SysTick
    counter rolls over at about 6 Hz, and if it had to come out of
    idle at that rate it would be a significant power issue that would
    swamp the gains from tickless.  Obviously systems with slow
    counters like nRF or 64 bit ones like RISC-V or x86's TSC aren't
    as affected.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-10-16 15:03:10 -04:00
..
app_memory subsys: app_memory: Fixed the size calculation for power of 2 MPUs 2018-09-20 11:25:53 -04:00
bluetooth Bluetooth: host: Allow to disable legacy pairing. 2018-10-16 14:25:56 +03:00
console subsys: console: Split serial tty handling to a separate module 2018-10-03 16:40:49 +02:00
cpp kconfig: Move CPLUSPLUS from root to "Compiler Options" 2018-04-30 13:12:01 -04:00
debug tracing: don't include kernel_structs.h from tracing_sysview.h 2018-10-05 10:37:01 -04:00
dfu dfu: log: rename level variable 2018-10-08 17:49:12 -04:00
disk subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
fb subsys: add monochrome character framebuffer 2018-10-16 14:54:47 -04:00
fs subsys: fs: Use template to define CONFIG_FS_LOG_LEVEL 2018-10-15 09:18:03 -04:00
logging logging: Postpone log processing when no backends enabled 2018-10-11 13:29:50 +03:00
mgmt shell: Rename shell to legacy_shell 2018-09-19 09:30:29 -04:00
net sys_clock: Make clock_always_on true by default 2018-10-16 15:03:10 -04:00
power clock: Remove CONFIG_TICKLESS_KERNEL_TIME_UNIT_IN_MICRO_SECS 2018-10-16 15:03:10 -04:00
random subsys: random: xoroshiro128: Use entropy get isr during init 2018-09-05 13:04:20 -04:00
settings cmake: settings: Don't add ext nffs include dir to global includes 2018-07-25 08:27:45 -04:00
shell shell: create instances automatically basing on enabled backend 2018-10-11 12:08:04 +02:00
storage subsys: storage: flash_map: add API for check flash driver support 2018-09-27 16:24:21 +02:00
usb usb: Enable log level menu after enabling module 2018-10-15 12:58:27 -04:00
CMakeLists.txt subsys: add monochrome character framebuffer 2018-10-16 14:54:47 -04:00
Kconfig subsys: add monochrome character framebuffer 2018-10-16 14:54:47 -04:00