rcu.h 518 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _ASM_X86_RCU_H
  2. #define _ASM_X86_RCU_H
  3. #ifndef __ASSEMBLY__
  4. #include <linux/rcupdate.h>
  5. #include <asm/ptrace.h>
  6. static inline void exception_enter(struct pt_regs *regs)
  7. {
  8. rcu_user_exit();
  9. }
  10. static inline void exception_exit(struct pt_regs *regs)
  11. {
  12. #ifdef CONFIG_RCU_USER_QS
  13. if (user_mode(regs))
  14. rcu_user_enter();
  15. #endif
  16. }
  17. #else /* __ASSEMBLY__ */
  18. #ifdef CONFIG_RCU_USER_QS
  19. # define SCHEDULE_USER call schedule_user
  20. #else
  21. # define SCHEDULE_USER call schedule
  22. #endif
  23. #endif /* !__ASSEMBLY__ */
  24. #endif