internal.h 483 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. #ifndef ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H
  3. #define ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H
  4. #include <linux/jump_label.h>
  5. extern bool stress_slb_enabled;
  6. DECLARE_STATIC_KEY_FALSE(stress_slb_key);
  7. static inline bool stress_slb(void)
  8. {
  9. return static_branch_unlikely(&stress_slb_key);
  10. }
  11. void slb_setup_new_exec(void);
  12. void exit_lazy_flush_tlb(struct mm_struct *mm, bool always_flush);
  13. #endif /* ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H */