Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190029
b: refs/heads/master
c: bc293d6
h: refs/heads/master
i:
  190027: 64cea14
v: v3
  • Loading branch information
Paul E. McKenney authored and Ingo Molnar committed Apr 19, 2010
1 parent da02ce4 commit 9034f79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 50aec0024eccb1d5f540ab64a1958eebcdb9340c
refs/heads/master: bc293d62b26ec590afc90a9e0a31c45d355b7bd8
5 changes: 1 addition & 4 deletions trunk/include/linux/rcupdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ extern struct lockdep_map rcu_sched_lock_map;
# define rcu_read_release_sched() \
lock_release(&rcu_sched_lock_map, 1, _THIS_IP_)

static inline int debug_lockdep_rcu_enabled(void)
{
return likely(rcu_scheduler_active && debug_locks);
}
extern int debug_lockdep_rcu_enabled(void);

/**
* rcu_read_lock_held - might we be in RCU read-side critical section?
Expand Down
7 changes: 7 additions & 0 deletions trunk/kernel/rcupdate.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ EXPORT_SYMBOL_GPL(rcu_scheduler_active);

#ifdef CONFIG_DEBUG_LOCK_ALLOC

int debug_lockdep_rcu_enabled(void)
{
return rcu_scheduler_active && debug_locks &&
current->lockdep_recursion == 0;
}
EXPORT_SYMBOL_GPL(debug_lockdep_rcu_enabled);

/**
* rcu_read_lock_bh_held - might we be in RCU-bh read-side critical section?
*
Expand Down

0 comments on commit 9034f79

Please sign in to comment.