zephyr/arch/arc
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
..
core sys_clock: Fix unsafe tick count usage 2018-10-16 15:03:10 -04:00
include headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
CMakeLists.txt arc: move soc to top-level dir soc/ 2018-09-13 00:56:48 -04:00
Kconfig kconfig: move soc selection to ZEPHYR_BASE/soc/ 2018-09-13 00:56:48 -04:00
defconfig boards: cleanup and update the default config of arc boards 2018-08-24 09:31:24 -07:00