Skip to content
Commit d1495e98 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

kernel: fix arch_mem_coherent() call in spinlock



The call to arch_mem_coherent() inside spinlock.h
when spinlock validation and memory coherence enabled
is causing build error as spinlock.h does not include
kernel_arch_func.h directly. However, simply including
that file does not work either as this creates
the chicken-or-egg in the chain of include files.
In order to make spin validation work with kernel
coherence enabled, a separate function is created
to break the circular dependencies of include files.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 079bc64c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment