diff options
-rw-r--r-- | include/linux/rcupdate.h | 4 | ||||
-rw-r--r-- | include/linux/rcutiny.h | 16 | ||||
-rw-r--r-- | include/linux/rcutree.h | 5 | ||||
-rw-r--r-- | kernel/rcu/tiny.c | 33 |
4 files changed, 21 insertions, 37 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 87bb0eee665b..1b3d7bcb3a6c 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h | |||
@@ -292,10 +292,6 @@ void rcu_sched_qs(void); | |||
292 | void rcu_bh_qs(void); | 292 | void rcu_bh_qs(void); |
293 | void rcu_check_callbacks(int user); | 293 | void rcu_check_callbacks(int user); |
294 | struct notifier_block; | 294 | struct notifier_block; |
295 | void rcu_idle_enter(void); | ||
296 | void rcu_idle_exit(void); | ||
297 | void rcu_irq_enter(void); | ||
298 | void rcu_irq_exit(void); | ||
299 | int rcu_cpu_notify(struct notifier_block *self, | 295 | int rcu_cpu_notify(struct notifier_block *self, |
300 | unsigned long action, void *hcpu); | 296 | unsigned long action, void *hcpu); |
301 | 297 | ||
diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h index 937edaeb150d..3df6c1ec4e25 100644 --- a/include/linux/rcutiny.h +++ b/include/linux/rcutiny.h | |||
@@ -159,6 +159,22 @@ static inline void rcu_cpu_stall_reset(void) | |||
159 | { | 159 | { |
160 | } | 160 | } |
161 | 161 | ||
162 | static inline void rcu_idle_enter(void) | ||
163 | { | ||
164 | } | ||
165 | |||
166 | static inline void rcu_idle_exit(void) | ||
167 | { | ||
168 | } | ||
169 | |||
170 | static inline void rcu_irq_enter(void) | ||
171 | { | ||
172 | } | ||
173 | |||
174 | static inline void rcu_irq_exit(void) | ||
175 | { | ||
176 | } | ||
177 | |||
162 | static inline void exit_rcu(void) | 178 | static inline void exit_rcu(void) |
163 | { | 179 | { |
164 | } | 180 | } |
diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h index d2e583a6aaca..f22d83f49e56 100644 --- a/include/linux/rcutree.h +++ b/include/linux/rcutree.h | |||
@@ -93,6 +93,11 @@ void rcu_force_quiescent_state(void); | |||
93 | void rcu_bh_force_quiescent_state(void); | 93 | void rcu_bh_force_quiescent_state(void); |
94 | void rcu_sched_force_quiescent_state(void); | 94 | void rcu_sched_force_quiescent_state(void); |
95 | 95 | ||
96 | void rcu_idle_enter(void); | ||
97 | void rcu_idle_exit(void); | ||
98 | void rcu_irq_enter(void); | ||
99 | void rcu_irq_exit(void); | ||
100 | |||
96 | void exit_rcu(void); | 101 | void exit_rcu(void); |
97 | 102 | ||
98 | void rcu_scheduler_starting(void); | 103 | void rcu_scheduler_starting(void); |
diff --git a/kernel/rcu/tiny.c b/kernel/rcu/tiny.c index 069742d61c68..a501b4ab9b1c 100644 --- a/kernel/rcu/tiny.c +++ b/kernel/rcu/tiny.c | |||
@@ -49,39 +49,6 @@ static void __call_rcu(struct rcu_head *head, | |||
49 | 49 | ||
50 | #include "tiny_plugin.h" | 50 | #include "tiny_plugin.h" |
51 | 51 | ||
52 | /* | ||
53 | * Enter idle, which is an extended quiescent state if we have fully | ||
54 | * entered that mode. | ||
55 | */ | ||
56 | void rcu_idle_enter(void) | ||
57 | { | ||
58 | } | ||
59 | EXPORT_SYMBOL_GPL(rcu_idle_enter); | ||
60 | |||
61 | /* | ||
62 | * Exit an interrupt handler towards idle. | ||
63 | */ | ||
64 | void rcu_irq_exit(void) | ||
65 | { | ||
66 | } | ||
67 | EXPORT_SYMBOL_GPL(rcu_irq_exit); | ||
68 | |||
69 | /* | ||
70 | * Exit idle, so that we are no longer in an extended quiescent state. | ||
71 | */ | ||
72 | void rcu_idle_exit(void) | ||
73 | { | ||
74 | } | ||
75 | EXPORT_SYMBOL_GPL(rcu_idle_exit); | ||
76 | |||
77 | /* | ||
78 | * Enter an interrupt handler, moving away from idle. | ||
79 | */ | ||
80 | void rcu_irq_enter(void) | ||
81 | { | ||
82 | } | ||
83 | EXPORT_SYMBOL_GPL(rcu_irq_enter); | ||
84 | |||
85 | #if defined(CONFIG_DEBUG_LOCK_ALLOC) || defined(CONFIG_RCU_TRACE) | 52 | #if defined(CONFIG_DEBUG_LOCK_ALLOC) || defined(CONFIG_RCU_TRACE) |
86 | 53 | ||
87 | /* | 54 | /* |