summaryrefslogtreecommitdiff
path: root/drivers/soc/qcom/Kconfig
diff options
context:
space:
mode:
authorMahesh Sivasubramanian <msivasub@codeaurora.org>2021-10-13 09:38:21 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2021-10-17 02:23:30 +0300
commit1d7724690344a264f8a567c9214aa65456d7566d (patch)
treeb763440a0587feb728bdcf1fc8314de591c6f93b /drivers/soc/qcom/Kconfig
parentac3f1ee77cbed7f66932a10d091f653ca1ef8143 (diff)
downloadlinux-1d7724690344a264f8a567c9214aa65456d7566d.tar.xz
soc: qcom: Add Sleep stats driver
Let's add a driver to read the stats from remote processor and export to debugfs. The driver creates "qcom_sleep_stats" directory in debugfs and adds files for various low power mode available. Below is sample output with command cat /sys/kernel/debug/qcom_sleep_stats/ddr count = 0 Last Entered At = 0 Last Exited At = 0 Accumulated Duration = 0 Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org> Signed-off-by: Lina Iyer <ilina@codeaurora.org> [mkshah: add subsystem sleep stats, create one file for each stat] Signed-off-by: Maulik Shah <mkshah@codeaurora.org> Tested-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/1634107104-22197-3-git-send-email-mkshah@codeaurora.org
Diffstat (limited to 'drivers/soc/qcom/Kconfig')
-rw-r--r--drivers/soc/qcom/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
index abfef201b94f..3cf3a6b41182 100644
--- a/drivers/soc/qcom/Kconfig
+++ b/drivers/soc/qcom/Kconfig
@@ -199,6 +199,16 @@ config QCOM_SPM
to manage cores, L2 low power modes and to configure the internal
Adaptive Voltage Scaler parameters, where supported.
+config QCOM_STATS
+ tristate "Qualcomm Technologies, Inc. (QTI) Sleep stats driver"
+ depends on (ARCH_QCOM && DEBUG_FS) || COMPILE_TEST
+ depends on QCOM_SMEM
+ help
+ Qualcomm Technologies, Inc. (QTI) Sleep stats driver to read
+ the shared memory exported by the remote processor related to
+ various SoC level low power modes statistics and export to debugfs
+ interface.
+
config QCOM_WCNSS_CTRL
tristate "Qualcomm WCNSS control driver"
depends on ARCH_QCOM || COMPILE_TEST