]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: add support for ACPI reconfiguration notifiers
authorOctavian Purdila <octavian.purdila@intel.com>
Fri, 8 Jul 2016 16:13:09 +0000 (19:13 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Jul 2016 19:52:35 +0000 (21:52 +0200)
commit18b521a9b462e1fc2f044f1020ae0f15686bea58
tree675807b263d4ce87f5d35beac0f21658d77a3ff5
parentf58b39c8fb07cdb64c2c4b2510b25da20b1619a4
ACPI: add support for ACPI reconfiguration notifiers

Add support for ACPI reconfiguration notifiers to allow subsystems
to react to changes in the ACPI tables that happen after the initial
enumeration. This is similar with the way dynamic device tree
notifications work.

The reconfigure notifications supported for now are device add and
device remove.

Since ACPICA allows only one table notification handler, this patch
makes the table notifier function generic and moves it out of the
sysfs specific code.

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/bus.c
drivers/acpi/internal.h
drivers/acpi/scan.c
drivers/acpi/sysfs.c
include/linux/acpi.h