|
29 | 29 | struct class *power_supply_class; |
30 | 30 | EXPORT_SYMBOL_GPL(power_supply_class); |
31 | 31 |
|
32 | | -ATOMIC_NOTIFIER_HEAD(power_supply_notifier); |
| 32 | +BLOCKING_NOTIFIER_HEAD(power_supply_notifier); |
33 | 33 | EXPORT_SYMBOL_GPL(power_supply_notifier); |
34 | 34 |
|
35 | 35 | static struct device_type power_supply_dev_type; |
@@ -97,7 +97,7 @@ static void power_supply_changed_work(struct work_struct *work) |
97 | 97 | class_for_each_device(power_supply_class, NULL, psy, |
98 | 98 | __power_supply_changed_work); |
99 | 99 | power_supply_update_leds(psy); |
100 | | - atomic_notifier_call_chain(&power_supply_notifier, |
| 100 | + blocking_notifier_call_chain(&power_supply_notifier, |
101 | 101 | PSY_EVENT_PROP_CHANGED, psy); |
102 | 102 | kobject_uevent(&psy->dev.kobj, KOBJ_CHANGE); |
103 | 103 | spin_lock_irqsave(&psy->changed_lock, flags); |
@@ -1262,13 +1262,13 @@ static void power_supply_dev_release(struct device *dev) |
1262 | 1262 |
|
1263 | 1263 | int power_supply_reg_notifier(struct notifier_block *nb) |
1264 | 1264 | { |
1265 | | - return atomic_notifier_chain_register(&power_supply_notifier, nb); |
| 1265 | + return blocking_notifier_chain_register(&power_supply_notifier, nb); |
1266 | 1266 | } |
1267 | 1267 | EXPORT_SYMBOL_GPL(power_supply_reg_notifier); |
1268 | 1268 |
|
1269 | 1269 | void power_supply_unreg_notifier(struct notifier_block *nb) |
1270 | 1270 | { |
1271 | | - atomic_notifier_chain_unregister(&power_supply_notifier, nb); |
| 1271 | + blocking_notifier_chain_unregister(&power_supply_notifier, nb); |
1272 | 1272 | } |
1273 | 1273 | EXPORT_SYMBOL_GPL(power_supply_unreg_notifier); |
1274 | 1274 |
|
|
0 commit comments