xref: /kernel/linux/linux-5.10/arch/powerpc/include/asm/spinlock.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/powerpc/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci#ifndef __ASM_SPINLOCK_H
38c2ecf20Sopenharmony_ci#define __ASM_SPINLOCK_H
48c2ecf20Sopenharmony_ci#ifdef __KERNEL__
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifdef CONFIG_PPC_QUEUED_SPINLOCKS
78c2ecf20Sopenharmony_ci#include <asm/qspinlock.h>
88c2ecf20Sopenharmony_ci#include <asm/qrwlock.h>
98c2ecf20Sopenharmony_ci#else
108c2ecf20Sopenharmony_ci#include <asm/simple_spinlock.h>
118c2ecf20Sopenharmony_ci#endif
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#ifndef CONFIG_PARAVIRT_SPINLOCKS
148c2ecf20Sopenharmony_cistatic inline void pv_spinlocks_init(void) { }
158c2ecf20Sopenharmony_ci#endif
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#endif /* __KERNEL__ */
188c2ecf20Sopenharmony_ci#endif /* __ASM_SPINLOCK_H */
19

Indexes created Thu Nov 07 10:32:03 CST 2024