android_kernel_samsung_sm8650/Documentation/power
Sakari Ailus c111566bea PM: runtime: Add pm_runtime_get_if_active()
pm_runtime_get_if_in_use() bumps up the PM-runtime usage count if it
is not equal to zero and the device's PM-runtime status is 'active'.
This works for drivers that do not use autoidle, but for those that
do, the function returns zero even when the device is active.

In order to maintain sane device state while the device is powered on
in the hope that it'll be needed, pm_runtime_get_if_active(dev, true)
returns a positive value if the device's PM-runtime status is 'active'
when it is called, in which case it also increments the device's usage
count.

If the second argument of pm_runtime_get_if_active() is 'false', the
function behaves just like pm_runtime_get_if_in_use(), so redefine
the latter as a wrapper around the former.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
[ rjw: Changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2020-03-04 11:01:18 +01:00
..
powercap docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
regulator docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
apm-acpi.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
basic-pm-debugging.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
charger-manager.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
drivers-testing.rst PM: Wrap documentation to fit in 80 columns 2019-11-20 12:16:37 +01:00
energy-model.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
freezing-of-tasks.rst PM: Wrap documentation to fit in 80 columns 2019-11-20 12:16:37 +01:00
index.rst Documentation: power: Drop reference to interface.rst 2020-02-20 11:50:59 +01:00
opp.rst PM: Wrap documentation to fit in 80 columns 2019-11-20 12:16:37 +01:00
pci.rst PCI/PM: Remove unused pci_driver.suspend_late() hook 2019-11-20 17:35:25 -06:00
pm_qos_interface.rst PM: Wrap documentation to fit in 80 columns 2019-11-20 12:16:37 +01:00
power_supply_class.rst power supply and reset changes for the v5.3 series 2019-07-15 21:06:15 -07:00
runtime_pm.rst PM: runtime: Add pm_runtime_get_if_active() 2020-03-04 11:01:18 +01:00
s2ram.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
suspend-and-cpuhotplug.rst PM: Wrap documentation to fit in 80 columns 2019-11-20 12:16:37 +01:00
suspend-and-interrupts.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
swsusp-and-swap-files.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
swsusp-dmcrypt.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
swsusp.rst PM: Wrap documentation to fit in 80 columns 2019-11-20 12:16:37 +01:00
tricks.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
userland-swsusp.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00
video.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00