[PATCH RFC 1/3] Add interface to receive current cpu power

2013-07-30 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin --- drivers/cpufreq/cpufreq.c | 17 + include/linux/cpufreq.h |6 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 6a015ad..4180e89 100644 --- a/drivers/cpufreq/cpufreq.c

[PATCH RFC 3/3] Update current cpu power when cpu freq change for exynos.

2013-07-30 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin --- drivers/cpufreq/exynos-cpufreq.c |2 ++ drivers/cpufreq/exynos-cpufreq.h |1 + drivers/cpufreq/exynos4x12-cpufreq.c | 19 ++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/exynos-cpufreq.c

[PATCH RFC 2/3] Add power consumption counter in task_struct.

2013-07-30 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin --- include/linux/sched.h |2 ++ include/uapi/linux/taskstats.h |2 ++ kernel/fork.c |1 + kernel/sched/core.c|8 kernel/sched/cputime.c | 11 +++ kernel/tsacct.c

[PATCH RFC 0/3] Per-process power consumption measurement facility

2013-07-30 Thread Konstantin Krivyakin
to demonstrate how it works. To minimize scheduler impact for each CPU P-state the value of (V^2 *f) was precomputed at the time of platform initialization. And to reduce performance impact furthermore, the C constant is multiplied in userspace. Konstantin Krivyakin (3): Add interface to receive

[PATCH RFC 0/3] Per-process power consumption measurement facility

2013-07-30 Thread Konstantin Krivyakin
to demonstrate how it works. To minimize scheduler impact for each CPU P-state the value of (V^2 *f) was precomputed at the time of platform initialization. And to reduce performance impact furthermore, the C constant is multiplied in userspace. Konstantin Krivyakin (3): Add interface to receive

[PATCH RFC 2/3] Add power consumption counter in task_struct.

2013-07-30 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin k.krivya...@samsung.com --- include/linux/sched.h |2 ++ include/uapi/linux/taskstats.h |2 ++ kernel/fork.c |1 + kernel/sched/core.c|8 kernel/sched/cputime.c | 11 +++ kernel

[PATCH RFC 3/3] Update current cpu power when cpu freq change for exynos.

2013-07-30 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin k.krivya...@samsung.com --- drivers/cpufreq/exynos-cpufreq.c |2 ++ drivers/cpufreq/exynos-cpufreq.h |1 + drivers/cpufreq/exynos4x12-cpufreq.c | 19 ++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH RFC 1/3] Add interface to receive current cpu power

2013-07-30 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin k.krivya...@samsung.com --- drivers/cpufreq/cpufreq.c | 17 + include/linux/cpufreq.h |6 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 6a015ad..4180e89 100644

[PATCH RFC 2/3] Add power consumption counter in task_struct.

2013-07-04 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin --- include/linux/sched.h |2 ++ include/uapi/linux/taskstats.h |2 ++ kernel/fork.c |1 + kernel/sched/core.c|8 kernel/sched/cputime.c | 11 +++ kernel/tsacct.c

[PATCH RFC 1/3] Add interface to receive current cpu power

2013-07-04 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin --- drivers/cpufreq/cpufreq.c | 17 + include/linux/cpufreq.h |6 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 6a015ad..4180e89 100644 --- a/drivers/cpufreq/cpufreq.c

[PATCH RFC 0/3] Per-process power consumption measurement facility

2013-07-04 Thread Konstantin Krivyakin
to demonstrate how it works. To minimize scheduler impact for each CPU P-state the value of (V^2 *f) was precomputed at the time of platform initialization. And to reduce performance impact furthermore, the C constant is multiplied in userspace. Konstantin Krivyakin (3): Add interface to receive

[PATCH RFC 3/3] Update current cpu power when cpu freq change for exynos.

2013-07-04 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin --- drivers/cpufreq/exynos-cpufreq.c |2 ++ drivers/cpufreq/exynos-cpufreq.h |1 + drivers/cpufreq/exynos4x12-cpufreq.c | 19 ++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/exynos-cpufreq.c

[PATCH RFC 0/3] Per-process power consumption measurement facility

2013-07-04 Thread Konstantin Krivyakin
to demonstrate how it works. To minimize scheduler impact for each CPU P-state the value of (V^2 *f) was precomputed at the time of platform initialization. And to reduce performance impact furthermore, the C constant is multiplied in userspace. Konstantin Krivyakin (3): Add interface to receive

[PATCH RFC 3/3] Update current cpu power when cpu freq change for exynos.

2013-07-04 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin k.krivya...@samsung.com --- drivers/cpufreq/exynos-cpufreq.c |2 ++ drivers/cpufreq/exynos-cpufreq.h |1 + drivers/cpufreq/exynos4x12-cpufreq.c | 19 ++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH RFC 1/3] Add interface to receive current cpu power

2013-07-04 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin k.krivya...@samsung.com --- drivers/cpufreq/cpufreq.c | 17 + include/linux/cpufreq.h |6 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 6a015ad..4180e89 100644

[PATCH RFC 2/3] Add power consumption counter in task_struct.

2013-07-04 Thread Konstantin Krivyakin
Signed-off-by: Konstantin Krivyakin k.krivya...@samsung.com --- include/linux/sched.h |2 ++ include/uapi/linux/taskstats.h |2 ++ kernel/fork.c |1 + kernel/sched/core.c|8 kernel/sched/cputime.c | 11 +++ kernel