processor.h 309 B

1234567891011121314151617
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2020 ARM Ltd.
  4. */
  5. #ifndef __ASM_VDSO_PROCESSOR_H
  6. #define __ASM_VDSO_PROCESSOR_H
  7. #ifndef __ASSEMBLER__
  8. static inline void cpu_relax(void)
  9. {
  10. asm volatile("yield" ::: "memory");
  11. }
  12. #endif /* __ASSEMBLER__ */
  13. #endif /* __ASM_VDSO_PROCESSOR_H */