projects
/
firefly-linux-kernel-4.4.55.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
x86: Exception hooks for userspace RCU extended QS
[firefly-linux-kernel-4.4.55.git]
/
arch
/
x86
/
include
/
asm
/
rcu.h
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