diff options
author | Stephen Boyd <swboyd@chromium.org> | 2022-10-14 17:49:34 -0700 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2022-10-17 17:58:15 -0500 |
commit | 367b9c70e9b25fe9ad5346b0f3544682d8b112b9 (patch) | |
tree | 2062c3f3116b1dc02ff1fa03525c8ad9c6dffb50 /drivers/soc | |
parent | 5f7e2cb56af6800a4158514cc27921141e67ae19 (diff) |
soc: qcom: stats: Mark device as having no PM support
This driver purely exposes information from memory to the kernel. Let's
mark it as not having any device PM functionality, so that during
suspend we skip even trying to call a suspend function on this device.
This clears up suspend logs more than anything else, but it also shaves
a few cycles off suspend.
Cc: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221015004934.3930651-2-swboyd@chromium.org
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/qcom/qcom_stats.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/soc/qcom/qcom_stats.c b/drivers/soc/qcom/qcom_stats.c index 121ea409fafc..6228af057120 100644 --- a/drivers/soc/qcom/qcom_stats.c +++ b/drivers/soc/qcom/qcom_stats.c @@ -217,6 +217,8 @@ static int qcom_stats_probe(struct platform_device *pdev) platform_set_drvdata(pdev, root); + device_set_pm_not_required(&pdev->dev); + return 0; } |