summaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorConnor O'Brien <connoro@google.com>2018-10-05 19:20:54 -0700
committerNaitik Bharadiya <bharad@codeaurora.org>2019-08-23 11:58:55 +0530
commit47f20dea209022229177b139502f04d2876a51ce (patch)
treec66fb0563cc87ee8b1e50475d2a433f0b72e7ed9 /drivers/mtd/lpddr/lpddr_cmds.c
parent2a61e30d4462de293371173af5c153e0ea195f0e (diff)
ANDROID: cpufreq: times: add /proc/uid_concurrent_{active,policy}_time
In order to model the energy used by the cpu, we need to expose cpu time information to userspace. We can use this information to blame uids for the energy they are using. This patch adds 2 files: /proc/uid_concurrent_active_time outputs the time each uid spent running with 1 to num_possible_cpus online and not idle. For instance, if 4 cores are online and active for 50ms and the uid is running on one of the cores, the uid should be blamed for 1/4 of the base energy used by the cpu when 1 or more cores is active. /proc/uid_concurrent_policy_time outputs the time each uid spent running on group of cpu's with the same policy with 1 to num_related_cpus online and not idle. For instance, if 2 cores that are a part of the same policy are online and active for 50ms and the uid is running on one of the cores, the uid should be blamed for 1/2 of the energy that is used everytime one or more cpus in the same policy is active. This patch is based on commit c89e69136fec ("ANDROID: cpufreq: uid_concurrent_active_time") and commit 989212536842 ("ANDROID: cpufreq: uid_concurrent_policy_time") in the android-msm-wahoo-4.4 kernel by Marissa Wall. Bug: 111216804 Test: cat files on hikey960 and confirm output is reasonable Change-Id: I075fef030c261b47831ae8d4ddb286ee9d8b9347 Signed-off-by: Connor O'Brien <connoro@google.com> Git-commit: 605e2ec6d67919b995c7b822b38b9ffea33c2338 Git-repo: https://android.googlesource.com/kernel/common/ [bharad@codeaurora.org: used seq_printf to fix compilation error] Signed-off-by: Naitik Bharadiya <bharad@codeaurora.org>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions