Skip to content

Commit

Permalink
rcu: Streamline code produced by __rcu_read_unlock()
Browse files Browse the repository at this point in the history
This is a port of commit #be0e1e21 to TINY_PREEMPT_RCU.  This uses
noinline to prevent rcu_read_unlock_special() from being inlined into
__rcu_read_unlock().

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
  • Loading branch information
Paul E. McKenney committed Feb 21, 2012
1 parent 26861fa commit afef205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/rcutiny_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ EXPORT_SYMBOL_GPL(__rcu_read_lock);
* notify RCU core processing or task having blocked during the RCU
* read-side critical section.
*/
static void rcu_read_unlock_special(struct task_struct *t)
static noinline void rcu_read_unlock_special(struct task_struct *t)
{
int empty;
int empty_exp;
Expand Down

0 comments on commit afef205

Please sign in to comment.