Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182239
b: refs/heads/master
c: 017c426
h: refs/heads/master
i:
  182237: 00fccdc
  182235: 39549bd
  182231: 4d0c6ed
  182223: 7ead65c
  182207: 410141c
v: v3
  • Loading branch information
Paul E. McKenney authored and Ingo Molnar committed Jan 16, 2010
1 parent cc94686 commit d7b7cd3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 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: 4c54005ca438a8b46dd542b497d4f0dc2ca375e8
refs/heads/master: 017c426138122c8e9b9f5057fbd0567c37b35247
6 changes: 3 additions & 3 deletions trunk/kernel/rcutree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1888,7 +1888,7 @@ do { \

void __init rcu_init(void)
{
int i;
int cpu;

rcu_bootup_announce();
#ifdef CONFIG_RCU_CPU_STALL_DETECTOR
Expand All @@ -1908,8 +1908,8 @@ void __init rcu_init(void)
* or the scheduler are operational.
*/
cpu_notifier(rcu_cpu_notify, 0);
for_each_online_cpu(i)
rcu_cpu_notify(NULL, CPU_UP_PREPARE, (void *)(long)i);
for_each_online_cpu(cpu)
rcu_cpu_notify(NULL, CPU_UP_PREPARE, (void *)(long)cpu);
}

#include "rcutree_plugin.h"
6 changes: 2 additions & 4 deletions trunk/kernel/rcutree.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ struct rcu_state {
#define RCU_OFL_TASKS_EXP_GP 0x2 /* Tasks blocking expedited */
/* GP were moved to root. */

#ifdef RCU_TREE_NONCORE

/*
* RCU implementation internal declarations:
*/
Expand All @@ -339,7 +337,7 @@ extern struct rcu_state rcu_preempt_state;
DECLARE_PER_CPU(struct rcu_data, rcu_preempt_data);
#endif /* #ifdef CONFIG_TREE_PREEMPT_RCU */

#else /* #ifdef RCU_TREE_NONCORE */
#ifndef RCU_TREE_NONCORE

/* Forward declarations for rcutree_plugin.h */
static void rcu_bootup_announce(void);
Expand Down Expand Up @@ -372,4 +370,4 @@ static void __cpuinit rcu_preempt_init_percpu_data(int cpu);
static void rcu_preempt_send_cbs_to_orphanage(void);
static void __init __rcu_init_preempt(void);

#endif /* #else #ifdef RCU_TREE_NONCORE */
#endif /* #ifndef RCU_TREE_NONCORE */
2 changes: 1 addition & 1 deletion trunk/kernel/srcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ EXPORT_SYMBOL_GPL(srcu_read_unlock);
/*
* Helper function for synchronize_srcu() and synchronize_srcu_expedited().
*/
void __synchronize_srcu(struct srcu_struct *sp, void (*sync_func)(void))
static void __synchronize_srcu(struct srcu_struct *sp, void (*sync_func)(void))
{
int idx;

Expand Down

0 comments on commit d7b7cd3

Please sign in to comment.