Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191000
b: refs/heads/master
c: da848c4
h: refs/heads/master
v: v3
  • Loading branch information
Paul E. McKenney committed May 10, 2010
1 parent 4d21b2c commit 79c11ee
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 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: 32c141a0a1dfa29e0a07d78bec0c0919fc4b9f88
refs/heads/master: da848c47bc6e873a54a445ea1960423a495b6b32
2 changes: 0 additions & 2 deletions trunk/include/linux/rcupdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ struct rcu_head {
};

/* Exported common interfaces */
extern void synchronize_rcu_bh(void);
extern void synchronize_sched(void);
extern void rcu_barrier(void);
extern void rcu_barrier_bh(void);
extern void rcu_barrier_sched(void);
Expand Down
12 changes: 11 additions & 1 deletion trunk/include/linux/rcutiny.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,17 @@ static inline void rcu_sched_force_quiescent_state(void)
{
}

#define synchronize_rcu synchronize_sched
extern void synchronize_sched(void);

static inline void synchronize_rcu(void)
{
synchronize_sched();
}

static inline void synchronize_rcu_bh(void)
{
synchronize_sched();
}

static inline void synchronize_rcu_expedited(void)
{
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/rcutree.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ static inline void __rcu_read_unlock_bh(void)

extern void call_rcu_sched(struct rcu_head *head,
void (*func)(struct rcu_head *rcu));
extern void synchronize_rcu_bh(void);
extern void synchronize_sched(void);
extern void synchronize_rcu_expedited(void);

static inline void synchronize_rcu_bh_expedited(void)
Expand Down
9 changes: 2 additions & 7 deletions trunk/kernel/rcutiny.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,20 +187,15 @@ static void rcu_process_callbacks(struct softirq_action *unused)
*
* Cool, huh? (Due to Josh Triplett.)
*
* But we want to make this a static inline later.
* But we want to make this a static inline later. The cond_resched()
* currently makes this problematic.
*/
void synchronize_sched(void)
{
cond_resched();
}
EXPORT_SYMBOL_GPL(synchronize_sched);

void synchronize_rcu_bh(void)
{
synchronize_sched();
}
EXPORT_SYMBOL_GPL(synchronize_rcu_bh);

/*
* Helper function for call_rcu() and call_rcu_bh().
*/
Expand Down

0 comments on commit 79c11ee

Please sign in to comment.