public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] ACPI: Refactor system notify handling
@ 2012-11-08 20:23 Toshi Kani
  2012-11-08 20:23 ` [PATCH v3 1/4] ACPI: Support system notify handler via .sys_notify Toshi Kani
                   ` (3 more replies)
  0 siblings, 4 replies; 28+ messages in thread
From: Toshi Kani @ 2012-11-08 20:23 UTC (permalink / raw)
  To: linux-acpi, rjw, lenb
  Cc: linux-kernel, bhelgaas, isimatu.yasuaki, liuj97, Toshi Kani

This patchset updates the ACPI system-level (ex. hotplug)
notify handling with a new .sys_notify interface.  It provides
the following changes:

- Allow ACPI drivers to register their system-level (hotplug)
  notify handlers to a new .sys_notify interface through their
  acpi_driver table.  This removes redundant ACPI namespace
  walks from ACPI drivers for faster booting.  The global notify
  handler acpi_bus_notify() is called for all system-level ACPI
  device notifications, which then calls an appropriate driver's
  handler if any.  ACPI drivers no longer need to register or
  unregister driver's handlers to each device object in ACPI
  namespace.
 
- Support dynamic ACPI namespace with LoadTable & Unload opcode
  without any changes in ACPI drivers.  There is no need to 
  register / unregister handlers to ACPI device objects getting
  loaded to / unloaded from ACPI namespace.

- Allow ACPI drivers to use a common hotplug handler when it is
  implemented.  It removes functional conflict between driver's
  notify handler and the global notify handler acpi_bus_notify().
  acpi_bus_notify() only calls an appropriate notify handler if
  any.

Note that the changes maintain backward compatibility for ACPI
drivers.  Any drivers registered their hotplug handlers through
the existing interfaces, such as acpi_install_notify_handler()
and register_acpi_bus_notifier(), will continue to work as before.

The patchset is based on the linux-next branch of linux-pm.git
tree.

v3:
 - Fixed to free the ID list when releasing a temporary device.

v2:
 - Protected unbound driver from unloading when calling .sys_notify.
 - Changed acpi_bus_notify() to call acpi_bus_notify_list first for
   maintaining the original order.

---
Toshi Kani (4):
 ACPI: Support system notify handler via .sys_notify
 ACPI: Update processor_driver to use .sys_notify
 ACPI: Update acpi_memhotplug to use .sys_notify
 ACPI: Update container to use .sys_notify

---
 drivers/acpi/acpi_memhotplug.c  | 93 ++---------------------------------------
 drivers/acpi/bus.c              | 64 +++++++++++++++++++++-------
 drivers/acpi/container.c        | 77 ++--------------------------------
 drivers/acpi/processor_driver.c | 82 ++++--------------------------------
 drivers/acpi/scan.c             | 83 ++++++++++++++++++++++++++++++++++++
 include/acpi/acpi_bus.h         |  6 +++
 6 files changed, 150 insertions(+), 255 deletions(-)

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2012-11-28 22:56 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08 20:23 [PATCH v3 0/4] ACPI: Refactor system notify handling Toshi Kani
2012-11-08 20:23 ` [PATCH v3 1/4] ACPI: Support system notify handler via .sys_notify Toshi Kani
2012-11-24 22:01   ` Rafael J. Wysocki
2012-11-24 22:07     ` Rafael J. Wysocki
2012-11-26 19:25       ` Toshi Kani
2012-11-24 22:37     ` Rafael J. Wysocki
2012-11-26 19:06       ` Toshi Kani
2012-11-26 20:44         ` Rafael J. Wysocki
2012-11-26 21:09           ` Toshi Kani
2012-11-26 21:24             ` Toshi Kani
2012-11-27 23:59               ` Rafael J. Wysocki
2012-11-28 16:54                 ` Toshi Kani
2012-11-28 18:28                   ` Rafael J. Wysocki
2012-11-28 20:31                     ` Toshi Kani
2012-11-28 21:09                       ` Rafael J. Wysocki
2012-11-28 21:23                         ` Toshi Kani
2012-11-28 21:55                           ` Rafael J. Wysocki
2012-11-28 22:33                             ` Toshi Kani
2012-11-28 22:49                               ` Rafael J. Wysocki
2012-11-28 22:48                                 ` Toshi Kani
2012-11-27 23:57             ` Rafael J. Wysocki
2012-11-26 23:17         ` Rafael J. Wysocki
2012-11-26 17:44     ` Toshi Kani
2012-11-28  0:29       ` Rafael J. Wysocki
2012-11-28 16:33         ` Toshi Kani
2012-11-08 20:23 ` [PATCH v3 2/4] ACPI: Update processor_driver to use .sys_notify Toshi Kani
2012-11-08 20:23 ` [PATCH v3 3/4] ACPI: Update acpi_memhotplug " Toshi Kani
2012-11-08 20:23 ` [PATCH v3 4/4] ACPI: Update container " Toshi Kani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox