kernel: rename z_arch_ to arch_

Promote the private z_arch_* namespace, which specifies
the interface between the core kernel and the
architecture code, to a new top-level namespace named
arch_*.

This allows our documentation generation to create
online documentation for this set of interfaces,
and this set of interfaces is worth treating in a
more formal way anyway.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-11-07 12:43:29 -08:00 committed by Andrew Boie
commit 4f77c2ad53
178 changed files with 912 additions and 910 deletions

View file

@ -73,7 +73,7 @@ static ALWAYS_INLINE k_spinlock_key_t k_spin_lock(struct k_spinlock *l)
* implementation. The "irq_lock()" API in SMP context is
* actually a wrapper for a global spinlock!
*/
k.key = z_arch_irq_lock();
k.key = arch_irq_lock();
#ifdef SPIN_VALIDATE
__ASSERT(z_spin_lock_valid(l), "Recursive spinlock");
@ -108,7 +108,7 @@ static ALWAYS_INLINE void k_spin_unlock(struct k_spinlock *l,
*/
atomic_clear(&l->locked);
#endif
z_arch_irq_unlock(key.key);
arch_irq_unlock(key.key);
}
/* Internal function: releases the lock, but leaves local interrupts