sched: cpufreq: Adds a field cpu_power in the task_struct
authorRuchi Kandoi <kandoiruchi@google.com>
Fri, 17 Apr 2015 23:33:29 +0000 (16:33 -0700)
committerRuchi Kandoi <kandoiruchi@google.com>
Mon, 1 Jun 2015 17:14:48 +0000 (17:14 +0000)
commit85a6bd2bc4c903df43186e6f41209746aa6fdf05
tree0693c8a1285e1a3d86055b6c080ed4a5fe1b92e8
parent8d12562a74922eac859dcec9c43d34d8fd1a9fd1
sched: cpufreq: Adds a field cpu_power in the task_struct

cpu_power has been added to keep track of amount of power each task is
consuming. cpu_power is updated whenever stime and utime are updated for
a task. power is computed by taking into account the frequency at which
the current core was running and the current for cpu actively
running at hat frequency.

Change-Id: Ic535941e7b339aab5cae9081a34049daeb44b248
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
drivers/cpufreq/cpufreq_stats.c
include/linux/cpufreq.h
include/linux/sched.h
kernel/fork.c
kernel/sched/cputime.c