ARM: 8199/1: PM / Runtime: Add getter for querying the IRQ safe option v12
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 14 Nov 2014 08:47:25 +0000 (09:47 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Nov 2014 20:23:34 +0000 (20:23 +0000)
commit3fb1581ea1ab0aec6ac5430dc0e257a8c9b71680
tree6af43faea7b2cbe61d4aefe54a1b3ebe34204d7f
parentf114040e3ea6e07372334ade75d1ee0775c355e1
ARM: 8199/1: PM / Runtime: Add getter for querying the IRQ safe option v12

Add a simple getter pm_runtime_is_irq_safe() for querying whether runtime
PM IRQ safe was set or not.

Various bus drivers implementing runtime PM may use choose to suspend
differently based on IRQ safeness status of child driver (e.g. do not
unprepare the clock if IRQ safe is not set).

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Rafael J. Wysocki <rjw@rjwysocki.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Documentation/power/runtime_pm.txt
include/linux/pm_runtime.h