Frederic Weisbecker | 6ba3c97 | 2012-07-11 20:26:35 +0200 | [diff] [blame^] | 1 | #ifndef _ASM_X86_RCU_H |
2 | #define _ASM_X86_RCU_H | ||||
3 | |||||
4 | #include <linux/rcupdate.h> | ||||
5 | #include <asm/ptrace.h> | ||||
6 | |||||
7 | static inline void exception_enter(struct pt_regs *regs) | ||||
8 | { | ||||
9 | rcu_user_exit(); | ||||
10 | } | ||||
11 | |||||
12 | static inline void exception_exit(struct pt_regs *regs) | ||||
13 | { | ||||
14 | #ifdef CONFIG_RCU_USER_QS | ||||
15 | if (user_mode(regs)) | ||||
16 | rcu_user_enter(); | ||||
17 | #endif | ||||
18 | } | ||||
19 | |||||
20 | #endif |