diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 23bddac4bad8..335720a1fc33 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1885,6 +1885,14 @@ static inline void rcu_copy_process(struct task_struct *p) | |||
1885 | 1885 | ||
1886 | #endif | 1886 | #endif |
1887 | 1887 | ||
1888 | static inline void rcu_switch(struct task_struct *prev, | ||
1889 | struct task_struct *next) | ||
1890 | { | ||
1891 | #ifdef CONFIG_RCU_USER_QS | ||
1892 | rcu_user_hooks_switch(prev, next); | ||
1893 | #endif | ||
1894 | } | ||
1895 | |||
1888 | static inline void tsk_restore_flags(struct task_struct *task, | 1896 | static inline void tsk_restore_flags(struct task_struct *task, |
1889 | unsigned long orig_flags, unsigned long flags) | 1897 | unsigned long orig_flags, unsigned long flags) |
1890 | { | 1898 | { |