spinlock.h 601 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2012 ARM Ltd.
  4. */
  5. #ifndef __ASM_SPINLOCK_H
  6. #define __ASM_SPINLOCK_H
  7. #include <asm/qspinlock.h>
  8. #include <asm/qrwlock.h>
  9. /* See include/linux/spinlock.h */
  10. #define smp_mb__after_spinlock() smp_mb()
  11. /*
  12. * Changing this will break osq_lock() thanks to the call inside
  13. * smp_cond_load_relaxed().
  14. *
  15. * See:
  16. * https://lore.kernel.org/lkml/[email protected]
  17. */
  18. #define vcpu_is_preempted vcpu_is_preempted
  19. static inline bool vcpu_is_preempted(int cpu)
  20. {
  21. return false;
  22. }
  23. #endif /* __ASM_SPINLOCK_H */