rcu: Make exit_rcu() more precise and consolidate
[deliverable/linux.git] / kernel / rcutree_plugin.h
index b1ac22e6fa31a1ef503113e6204907bd6f42b2f5..4936fff820ebfa4b3bc45e057ce81cb07c272575 100644 (file)
@@ -969,22 +969,6 @@ static void __init __rcu_init_preempt(void)
        rcu_init_one(&rcu_preempt_state, &rcu_preempt_data);
 }
 
-/*
- * Check for a task exiting while in a preemptible-RCU read-side
- * critical section, clean up if so.  No need to issue warnings,
- * as debug_check_no_locks_held() already does this if lockdep
- * is enabled.
- */
-void exit_rcu(void)
-{
-       struct task_struct *t = current;
-
-       if (t->rcu_read_lock_nesting == 0)
-               return;
-       t->rcu_read_lock_nesting = 1;
-       __rcu_read_unlock();
-}
-
 #else /* #ifdef CONFIG_TREE_PREEMPT_RCU */
 
 static struct rcu_state *rcu_state = &rcu_sched_state;
This page took 0.035921 seconds and 5 git commands to generate.