Replaced CTLFLAG_NEEDGIANT with CTLFLAG_MPSAFE for all battery status sysctls.
The driver uses ACPI_SERIAL locks for correct synchronization and does not require Giant lock.
Differential D54617
acpi_battery: Convert driver to CTLFLAG_MPSAFE Authored by guest-seuros on Fri, Jan 9, 3:22 PM. Tags None Referenced Files
Subscribers None
Details
Diff Detail
Event TimelineComment Actions acpi_battery_get_battinfo() calls into the newbus layer and accesses some structures that are synchronized by the Giant lock. I think we need to at least acquire bus_topo_lock() in acpi_battery_get_battinfo(). |