|
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); |
@@ -1112,13 +1112,13 @@ static void power_supply_dev_release(struct device *dev) |
1112 | 1112 |
|
1113 | 1113 | int power_supply_reg_notifier(struct notifier_block *nb) |
1114 | 1114 | { |
1115 | | - return atomic_notifier_chain_register(&power_supply_notifier, nb); |
| 1115 | + return blocking_notifier_chain_register(&power_supply_notifier, nb); |
1116 | 1116 | } |
1117 | 1117 | EXPORT_SYMBOL_GPL(power_supply_reg_notifier); |
1118 | 1118 |
|
1119 | 1119 | void power_supply_unreg_notifier(struct notifier_block *nb) |
1120 | 1120 | { |
1121 | | - atomic_notifier_chain_unregister(&power_supply_notifier, nb); |
| 1121 | + blocking_notifier_chain_unregister(&power_supply_notifier, nb); |
1122 | 1122 | } |
1123 | 1123 | EXPORT_SYMBOL_GPL(power_supply_unreg_notifier); |
1124 | 1124 |
|
|
0 commit comments