zephyr/tests/benchmarks
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
..
app_kernel sys_clock.h: Remove sys_clock_ticks_per_sec() 2018-10-16 15:03:10 -04:00
boot_time cmake: Prepend 'cmake_minimum_required()' into 'app' build scripts 2018-08-15 04:06:50 -07:00
footprint sys_clock: Fix unsafe tick count usage 2018-10-16 15:03:10 -04:00
latency_measure cmake: Prepend 'cmake_minimum_required()' into 'app' build scripts 2018-08-15 04:06:50 -07:00
object_footprint Kconfig: Remove redundant $(ZEPHYR_BASE) from 'source's 2018-10-10 11:28:27 -05:00
sys_kernel sys_clock: Fix unsafe tick count usage 2018-10-16 15:03:10 -04:00
timing_info tests: benchmarks: timing_info: Fixed userspace benchmarks for nrf52 2018-09-03 12:43:07 -04:00