sync_core.h 581 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINUX_SYNC_CORE_H
  3. #define _LINUX_SYNC_CORE_H
  4. #ifdef CONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE
  5. #include <asm/sync_core.h>
  6. #else
  7. /*
  8. * This is a dummy sync_core_before_usermode() implementation that can be used
  9. * on all architectures which return to user-space through core serializing
  10. * instructions.
  11. * If your architecture returns to user-space through non-core-serializing
  12. * instructions, you need to write your own functions.
  13. */
  14. static inline void sync_core_before_usermode(void)
  15. {
  16. }
  17. #endif
  18. #endif /* _LINUX_SYNC_CORE_H */