]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Add runtime power management support for IRQ chips
authorJon Hunter <jonathanh@nvidia.com>
Tue, 7 Jun 2016 15:12:29 +0000 (16:12 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 13 Jun 2016 10:53:51 +0000 (11:53 +0100)
commit905fd6225de7411c34884897a7171d6dbbe35825
treeec2e157704e95b7d78cffc5be6026b6f7f022a7d
parentb07332dc5f37f9db3c18320ab8567442b269d9d2
genirq: Add runtime power management support for IRQ chips

Some IRQ chips may be located in a power domain outside of the CPU
subsystem and hence will require device specific runtime power
management. In order to support such IRQ chips, add a pointer for a
device structure to the irq_chip structure, and if this pointer is
populated by the IRQ chip driver and CONFIG_PM is selected in the kernel
configuration, then the pm_runtime_get/put APIs for this chip will be
called when an IRQ is requested/freed, respectively.

Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/linux/irq.h
kernel/irq/chip.c
kernel/irq/internals.h
kernel/irq/manage.c