diff options
author | Paul Cercueil <paul@crapouillou.net> | 2022-11-29 22:19:36 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2023-01-26 17:55:39 +0300 |
commit | 900cd8f065de8d867bc436c1ba05873dc893f2cb (patch) | |
tree | 5f01b610207ba0063c34e1dbc18b607929734a3e /tools/perf/scripts/python/stackcollapse.py | |
parent | 584f13e75356936736930c501bce2db3616fb70e (diff) | |
download | linux-900cd8f065de8d867bc436c1ba05873dc893f2cb.tar.xz |
drm/tegra: Remove #ifdef guards for PM related functions
Use the RUNTIME_PM_OPS() and pm_ptr() macros to handle the
.runtime_suspend/.runtime_resume callbacks.
These macros allow the suspend and resume functions to be automatically
dropped by the compiler when CONFIG_PM is disabled, without having
to use #ifdef guards.
This has the advantage of always compiling these functions in,
independently of any Kconfig option. Thanks to that, bugs and other
regressions are subsequently easier to catch.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions