summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorJames Carr <carrja@google.com>2016-07-29 19:02:16 -0700
committerAmit Pundir <amit.pundir@linaro.org>2016-08-18 18:56:03 +0530
commit96cb71b8c592d760ad2e22432052510615987c41 (patch)
treec74710cf47496311a12534241ad66898fde12a50 /android
parentee665a37d5251d8af6e2904f08f7cfd6fd35ca72 (diff)
Implement memory_state_time, used by qcom,cpubw
New driver memory_state_time tracks time spent in different DDR frequency and bandwidth states. Memory drivers such as qcom,cpubw can post updated state to the driver after registering a callback. Processed by a workqueue Bandwidth buckets are read in from device tree in the relevant qualcomm section, can be defined in any quantity and spacing. The data is exposed at /sys/kernel/memory_state_time, able to be read by the Android framework. Functionality is behind a config option CONFIG_MEMORY_STATE_TIME Change-Id: I4fee165571cb975fb9eacbc9aada5e6d7dd748f0 Signed-off-by: James Carr <carrja@google.com>
Diffstat (limited to 'android')
-rw-r--r--android/configs/android-recommended.cfg1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/configs/android-recommended.cfg b/android/configs/android-recommended.cfg
index 2f1ef077aa9e..3465a848d74d 100644
--- a/android/configs/android-recommended.cfg
+++ b/android/configs/android-recommended.cfg
@@ -119,6 +119,7 @@ CONFIG_TIMER_STATS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_UHID=y
+CONFIG_MEMORY_STATE_TIME=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_HIDDEV=y