diff options
-rw-r--r-- | include/linux/srcu.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/srcu.h b/include/linux/srcu.h index 6eb691b08358..ae3ee39eb699 100644 --- a/include/linux/srcu.h +++ b/include/linux/srcu.h | |||
@@ -163,9 +163,6 @@ void srcu_barrier(struct srcu_struct *sp); | |||
163 | * power mode. This way we can notice an extended quiescent state to | 163 | * power mode. This way we can notice an extended quiescent state to |
164 | * other CPUs that started a grace period. Otherwise we would delay any | 164 | * other CPUs that started a grace period. Otherwise we would delay any |
165 | * grace period as long as we run in the idle task. | 165 | * grace period as long as we run in the idle task. |
166 | * | ||
167 | * Similarly, we avoid claiming an SRCU read lock held if the current | ||
168 | * CPU is offline. | ||
169 | */ | 166 | */ |
170 | static inline int srcu_read_lock_held(struct srcu_struct *sp) | 167 | static inline int srcu_read_lock_held(struct srcu_struct *sp) |
171 | { | 168 | { |
@@ -173,8 +170,6 @@ static inline int srcu_read_lock_held(struct srcu_struct *sp) | |||
173 | return 1; | 170 | return 1; |
174 | if (rcu_is_cpu_idle()) | 171 | if (rcu_is_cpu_idle()) |
175 | return 0; | 172 | return 0; |
176 | if (!rcu_lockdep_current_cpu_online()) | ||
177 | return 0; | ||
178 | return lock_is_held(&sp->dep_map); | 173 | return lock_is_held(&sp->dep_map); |
179 | } | 174 | } |
180 | 175 | ||