.. | .. |
---|
142 | 142 | unsigned long flags; |
---|
143 | 143 | int ret; |
---|
144 | 144 | |
---|
145 | | - raw_spin_lock_irqsave(&nh->lock, flags); |
---|
| 145 | + spin_lock_irqsave(&nh->lock, flags); |
---|
146 | 146 | ret = notifier_chain_register(&nh->head, n); |
---|
147 | | - raw_spin_unlock_irqrestore(&nh->lock, flags); |
---|
| 147 | + spin_unlock_irqrestore(&nh->lock, flags); |
---|
148 | 148 | return ret; |
---|
149 | 149 | } |
---|
150 | 150 | EXPORT_SYMBOL_GPL(atomic_notifier_chain_register); |
---|
.. | .. |
---|
164 | 164 | unsigned long flags; |
---|
165 | 165 | int ret; |
---|
166 | 166 | |
---|
167 | | - raw_spin_lock_irqsave(&nh->lock, flags); |
---|
| 167 | + spin_lock_irqsave(&nh->lock, flags); |
---|
168 | 168 | ret = notifier_chain_unregister(&nh->head, n); |
---|
169 | | - raw_spin_unlock_irqrestore(&nh->lock, flags); |
---|
| 169 | + spin_unlock_irqrestore(&nh->lock, flags); |
---|
170 | 170 | synchronize_rcu(); |
---|
171 | 171 | return ret; |
---|
172 | 172 | } |
---|
.. | .. |
---|
182 | 182 | * Musn't use RCU; because then the notifier list can |
---|
183 | 183 | * change between the up and down traversal. |
---|
184 | 184 | */ |
---|
185 | | - raw_spin_lock_irqsave(&nh->lock, flags); |
---|
| 185 | + spin_lock_irqsave(&nh->lock, flags); |
---|
186 | 186 | ret = notifier_call_chain_robust(&nh->head, val_up, val_down, v); |
---|
187 | | - raw_spin_unlock_irqrestore(&nh->lock, flags); |
---|
| 187 | + spin_unlock_irqrestore(&nh->lock, flags); |
---|
188 | 188 | |
---|
189 | 189 | return ret; |
---|
190 | 190 | } |
---|