Centos-kernel-stream-9/Documentation/power
Robert Foss c7bc023366
PM: runtime: Simplify pm_runtime_get_if_active() usage
JIRA: https://issues.redhat.com/browse/RHEL-53569
Upstream Status: v6.9-rc1

Conflicts:
	Conflicts due to whitespace change DRM v6.9 backport
        drivers/gpu/drm/i915/intel_runtime_pm.c

	0d08026ac609 ("net: ipa: kill ipa_clock_get_additional()")
        drivers/net/ipa/ipa_smp2p.c

	d3fcd7360338 ("PCI: Fix runtime PM race with PME polling")
        drivers/pci/pci.c

commit c0ef3df8dbaef51ee4cfd58a471adf2eaee6f6b3
Author:     Sakari Ailus <sakari.ailus@linux.intel.com>
AuthorDate: Tue Jan 30 13:28:05 2024 +0200
Commit:     Rafael J. Wysocki <rafael.j.wysocki@intel.com>
CommitDate: Mon Feb 12 16:57:47 2024 +0100

    There are two ways to opportunistically increment a device's runtime PM
    usage count, calling either pm_runtime_get_if_active() or
    pm_runtime_get_if_in_use(). The former has an argument to tell whether to
    ignore the usage count or not, and the latter simply calls the former with
    ign_usage_count set to false. The other users that want to ignore the
    usage_count will have to explicitly set that argument to true which is a
    bit cumbersome.

    To make this function more practical to use, remove the ign_usage_count
    argument from the function. The main implementation is in a static
    function called pm_runtime_get_conditional() and implementations of
    pm_runtime_get_if_active() and pm_runtime_get_if_in_use() are moved to
    runtime.c.

    Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
    Reviewed-by: Alex Elder <elder@linaro.org>
    Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Acked-by: Takashi Iwai <tiwai@suse.de> # sound/
    Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> # drivers/accel/ivpu/
    Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> # drivers/gpu/drm/i915/
    Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Acked-by: Bjorn Helgaas <bhelgaas@google.com> # drivers/pci/
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Signed-off-by: Robert Foss <rfoss@redhat.com>
2024-12-17 22:59:19 +01:00
..
powercap Documentation/powercap/dtpm: Add documentation for dtpm 2020-12-22 19:50:40 +01: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 Documentation: power: Add description about new callback for EM registration 2023-01-16 13:52:43 -05:00
freezing-of-tasks.rst Revert "Revert "Merge: cgroup: Backport upstream cgroup commits up to v6.8"" 2024-05-18 21:38:20 -04:00
index.rst Documentation/powercap/dtpm: Add documentation for dtpm 2020-12-22 19:50:40 +01:00
opp.rst PM: Wrap documentation to fit in 80 columns 2019-11-20 12:16:37 +01:00
pci.rst PCI/PM: Rename pci_dev.d3_delay to d3hot_delay 2020-09-29 14:21:50 -05:00
pm_qos_interface.rst Documentation: power: fix pm_qos_interface.rst format warning 2020-02-20 11:53:32 +01:00
power_supply_class.rst dt-bindings: power: update battery.yaml reference 2021-04-02 13:00:55 +02:00
runtime_pm.rst PM: runtime: Simplify pm_runtime_get_if_active() usage 2024-12-17 22:59:19 +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 cpu/hotplug: Remove disable_nonboot_cpus() 2020-05-07 15:18:40 +02: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 PM: hibernate: fix docs for ioctls that return loff_t via pointer 2020-03-14 11:51:32 +01:00
video.rst docs: power: convert docs to ReST and rename to *.rst 2019-06-14 16:08:36 -05:00