aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Lelli <juri.lelli@arm.com>2015-06-12 15:36:10 +0100
committerJuri Lelli <juri.lelli@arm.com>2015-10-05 12:20:54 +0100
commit99d7c625b1d7b5fb2cb7cb5aa25ce4a7f40d74c2 (patch)
tree43656544f8c3a4ce08e1fa75b5411c1995996475
parent4eb11000b60c1df29c1b70e3c43c030ecc9555f1 (diff)
downloadlinux-linaro-stable-99d7c625b1d7b5fb2cb7cb5aa25ce4a7f40d74c2.tar.gz
DEBUG: arm64: add cpu_capacity change tracepoint
arm64 bits of the same debugging stuff. Change-Id: If59276ff59e4376d1f689247f5c94a632fd94715 Signed-off-by: Juri Lelli <juri.lelli@arm.com>
-rw-r--r--arch/arm64/kernel/smp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
index da7d94a48295..bf31185fac2f 100644
--- a/arch/arm64/kernel/smp.c
+++ b/arch/arm64/kernel/smp.c
@@ -53,6 +53,7 @@
#include <asm/tlbflush.h>
#include <asm/ptrace.h>
+#include <trace/events/power.h>
#define CREATE_TRACE_POINTS
#include <trace/events/ipi.h>
@@ -700,8 +701,10 @@ static int cpufreq_callback(struct notifier_block *nb,
if (freq->flags & CPUFREQ_CONST_LOOPS)
return NOTIFY_OK;
- if (val == CPUFREQ_PRECHANGE)
+ if (val == CPUFREQ_PRECHANGE) {
scale_freq_capacity(cpu, freq->new, max);
+ trace_cpu_capacity(capacity_curr_of(cpu), cpu);
+ }
return NOTIFY_OK;
}