Message ID | 1367398673-1253-2-git-send-email-horms@verge.net.au |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/include/linux/sched.h b/include/linux/sched.h index e692a02..79cfe6d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2787,3 +2787,12 @@ static inline unsigned long rlimit_max(unsigned int limit) } #endif + +static void inline cond_resched_rcu_lock(void) +{ + rcu_read_unlock(); +#ifndef CONFIG_PREEMPT_RCU + cond_resched(); +#endif + rcu_read_lock(); +}