]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: configfs: Unload SSDT on configfs entry removal
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 9 Jun 2017 18:36:31 +0000 (20:36 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Jun 2017 00:43:12 +0000 (02:43 +0200)
commitfed51c4060a7e2ef4cc40d462b2ee2f70629efcb
tree432cea90575ff9277a72960e7eea4bc988e6c138
parente7de6d66fee4e75d42fc7d1cb785ba58edc08443
ACPI: configfs: Unload SSDT on configfs entry removal

Call directly into acpica to load a table to obtain its index on return.
We choose the direct call of acpica internal functions to avoid having
to modify its API which is used outside of Linux as well.

Use that index to unload the table again when the corresponding
directory in configfs gets removed. This allows to change SSDTs without
rebooting the system. It also allows to destroy devices again that a
dynamically loaded SSDT created.

This is widely similar to the DT overlay behavior.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_configfs.c
drivers/acpi/acpica/tbdata.c