Commit a231eed
ACPI: battery: create alarm sysfs attribute atomically
Let the power supply core register the attribute.
This ensures that the attribute is created before the device is
announced to userspace, avoid a race condition.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent aa53266 commit a231eed
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
687 | 693 | | |
688 | 694 | | |
689 | 695 | | |
| |||
823 | 829 | | |
824 | 830 | | |
825 | 831 | | |
826 | | - | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
827 | 836 | | |
828 | 837 | | |
829 | 838 | | |
| |||
868 | 877 | | |
869 | 878 | | |
870 | 879 | | |
871 | | - | |
| 880 | + | |
872 | 881 | | |
873 | 882 | | |
874 | 883 | | |
| |||
879 | 888 | | |
880 | 889 | | |
881 | 890 | | |
882 | | - | |
883 | 891 | | |
884 | 892 | | |
885 | 893 | | |
| |||
0 commit comments