zephyr/ext
Andy Ross 317178b88f sys_clock: Fix unsafe tick count usage
The system tick count is a 64 bit quantity that gets updated from
interrupt context, meaning that it's dangerously non-atomic and has to
be locked.  The core kernel clock code did this right.

But the value was also exposed to the rest of the universe as a global
variable, and virtually nothing else was doing this correctly.  Even
in the timer ISRs themselves, the interrupts may be themselves
preempted (most of our architectures support nested interrupts) by
code that wants to set timeouts and inspect system uptime.

Define a z_tick_{get,set}() API, eliminate the old variable, and make
sure everyone uses the right mechanism.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-10-16 15:03:10 -04:00
..
debug systemview: add support natively using tracing hooks 2018-08-21 05:45:47 -07:00
fs ext: nffs: portability: Avoid void* arithmetics which is a GNU extension 2018-09-28 07:57:28 +05:30
hal sys_clock: Fix unsafe tick count usage 2018-10-16 15:03:10 -04:00
lib ext: lib: mgmt: mcumgr: update to latest master 2018-10-04 10:34:22 +02:00
CMakeLists.txt Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
Kconfig ext: lib: Add fnmatch library 2018-09-19 09:30:29 -04:00