diff options
Diffstat (limited to 'include/linux/rcupdate.h')
-rw-r--r-- | include/linux/rcupdate.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 3c89d6a2591f..e920f0fd59d8 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h | |||
@@ -157,17 +157,28 @@ extern int rcu_scheduler_active; | |||
157 | * - call_rcu_sched() and rcu_barrier_sched() | 157 | * - call_rcu_sched() and rcu_barrier_sched() |
158 | * on the write-side to insure proper synchronization. | 158 | * on the write-side to insure proper synchronization. |
159 | */ | 159 | */ |
160 | #define rcu_read_lock_sched() preempt_disable() | 160 | static inline void rcu_read_lock_sched(void) |
161 | #define rcu_read_lock_sched_notrace() preempt_disable_notrace() | 161 | { |
162 | preempt_disable(); | ||
163 | } | ||
164 | static inline void rcu_read_lock_sched_notrace(void) | ||
165 | { | ||
166 | preempt_disable_notrace(); | ||
167 | } | ||
162 | 168 | ||
163 | /* | 169 | /* |
164 | * rcu_read_unlock_sched - marks the end of a RCU-classic critical section | 170 | * rcu_read_unlock_sched - marks the end of a RCU-classic critical section |
165 | * | 171 | * |
166 | * See rcu_read_lock_sched for more information. | 172 | * See rcu_read_lock_sched for more information. |
167 | */ | 173 | */ |
168 | #define rcu_read_unlock_sched() preempt_enable() | 174 | static inline void rcu_read_unlock_sched(void) |
169 | #define rcu_read_unlock_sched_notrace() preempt_enable_notrace() | 175 | { |
170 | 176 | preempt_enable(); | |
177 | } | ||
178 | static inline void rcu_read_unlock_sched_notrace(void) | ||
179 | { | ||
180 | preempt_enable_notrace(); | ||
181 | } | ||
171 | 182 | ||
172 | 183 | ||
173 | /** | 184 | /** |