blob: 439815b35ced75021a7fe5126895f73bdc47a214 [file] [log] [blame]
Frederic Weisbecker6ba3c972012-07-11 20:26:35 +02001#ifndef _ASM_X86_RCU_H
2#define _ASM_X86_RCU_H
3
4#include <linux/rcupdate.h>
5#include <asm/ptrace.h>
6
7static inline void exception_enter(struct pt_regs *regs)
8{
9 rcu_user_exit();
10}
11
12static 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